Skip to content

CSS named color

PaleGreen #98FB98

PaleGreen (CSS keyword palegreen) has the hex code #98FB98 and the RGB value rgb(152, 251, 152): a very light, vivid green.

PaleGreen#98FB98

A light pastel green (#98fb98), a little lighter than lightgreen.

Color codes for PaleGreen

Color codes for PaleGreen
CSS keywordpalegreen
HEX#98FB98
RGBrgb(152, 251, 152)
HSLhsl(120, 93%, 79%)
HWBhwb(120 60% 2%)
OKLCHoklch(90.4% 0.162 144.1)
CMYK (naive, no ICC profile)cmyk(39%, 0%, 39%, 2%)
Decimal10,025,880
Hue familyGreens

Contrast and accessibility

On palegreen, black text has a contrast ratio of 16.58:1 and passes AAA at any text size; white text reaches 1.26:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on palegreen16.58:1PassPassPassPass90.6
White text on palegreen1.26:1FailFailFailFail−15.0
Palegreen text on white1.26:1FailFailFailFail13.0
Palegreen text on black16.58:1PassPassPassPass−90.9

Tints and shades

Each step mixes palegreen with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, palegreen, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #9dfb9d
  2. 15%
    #a7fca7
  3. 25%
    #b2fcb2
  4. 35%
    #bcfcbc
  5. 45%
    #c6fdc6
  6. 55%
    #d1fdd1
  7. 65%
    #dbfedb
  8. 75%
    #e5fee5
  9. 85%
    #f0fef0
  10. 95%
    #fafffa

Shades (mixed with black)

  1. 5%
    #90ee90
  2. 15%
    #81d581
  3. 25%
    #72bc72
  4. 35%
    #63a363
  5. 45%
    #548a54
  6. 55%
    #447144
  7. 65%
    #355835
  8. 75%
    #263f26
  9. 85%
    #172617
  10. 95%
    #080d08

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, palegreen's complementary color is #FFC5FF (close to pink), its analogous colors are #DEEB5F and #37FFD7, and its triadic partners are #C9E0FF and #FFCDC8. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#ffc5ff
Analogous−30°, +30°#deeb5f#37ffd7
Triadic+120°, +240°#c9e0ff#ffcdc8
Split-complementary+150°, +210°#e1d6ff#ffc9e3

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

PaleGreen is a cool color: its hue is 120° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
lightgreen#90ee903.6
mediumspringgreen#00fa9a7.1
aquamarine#7fffd47.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
green-300#7bf1a84.5
lime-300#bbf4516.4
lime-200#d8f9997.0

Code snippets

CSS
.element {
  color: palegreen;
  background-color: #98fb98;
  border-color: rgb(152 251 152);
  outline-color: oklch(90.4% 0.162 144.1);
}
Tailwind CSS
<div class="bg-[#98fb98] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-palegreen: #98fb98;
}
/* then use bg-palegreen, text-palegreen, border-palegreen */
SwiftUI
import SwiftUI

extension Color {
  static let palegreen = Color(red: 0.596, green: 0.984, blue: 0.596)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Palegreen = Color(0xFF98FB98)
Flutter
import 'package:flutter/material.dart';

const palegreen = Color(0xFF98FB98);
Android XML
<!-- res/values/colors.xml -->
<color name="palegreen">#98FB98</color>

Frequently asked questions

What is the hex code for palegreen?
The hex code for palegreen is #98FB98. The same color is rgb(152, 251, 152), hsl(120, 93%, 79%) and oklch(90.4% 0.162 144.1), and in CSS you can also write the keyword palegreen directly.
Is palegreen a warm or cool color?
PaleGreen is a cool color: its hue is 120° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
What colors go with palegreen?
Rotating the hue in OKLCH while keeping lightness and chroma, palegreen's complementary color is #FFC5FF (close to pink), its analogous colors are #DEEB5F and #37FFD7, and its triadic partners are #C9E0FF and #FFCDC8. For text on top, black gives the higher contrast.
Can you use white text on palegreen?
White text on palegreen has a contrast ratio of 1.26:1, which fails AA even for large text under WCAG 2.2. Black text reaches 16.58:1 and passes both AA and AAA. In APCA terms that is Lc −15.0 for white and Lc 90.6 for black.
What is the RGB value of palegreen?
PaleGreen is rgb(152, 251, 152): red 152, green 251 and blue 152 on the 0 to 255 scale, or 59.6%, 98.4% and 59.6%. As a decimal integer it is 10025880.

Last reviewed by Arielton Oberek.