#CDF7A2#CDF7A2

#CDF7A2 is a very light, moderate yellow-green. Relative luminance 0.821; OKLCH L 92.7% C 0.118 H 129.8°. Best body text is #000000 at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#CDF7A2
RGBrgb(205, 247, 162)
HSLhsl(90, 84%, 80%)
HSVhsv(90, 34%, 97%)
CMYKcmyk(17%, 0%, 34.4%, 3.1%)
CIE-LABlab(92.62, -27.78, 36.56)
CIE-LCHlch(92.62, 45.92, 127.23°)
OKLaboklab(92.66% -0.0757 0.0908)
OKLCHoklch(92.66% 0.118 129.8)
XYZxyz(64.9582, 82.1084, 46.6016)
Luminance0.8211 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDF7A2 #CCA2F7
analogous
#F7F6A2 #CDF7A2 #A2F7A2
triadic
#CDF7A2 #A2CDF7 #F7A2CD
tetradic
#CDF7A2 #A2F7F6 #CCA2F7 #F7A2A2
square
#CDF7A2 #A2F7F6 #CCA2F7 #F7A2A2
split-complementary
#CDF7A2 #A2A2F7 #F6A2F7
monochromatic
#90ED31 #AFF26A #CDF7A2 #EBFCDA #F0FDE3

Accessibility & contrast

On white

1.21
#CDF7A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.42
#CDF7A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDF7A2
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDF7A2#FFFFFF#000000##000000
##CDF7A21.001.2117.4217.42
#FFFFFF1.211.0021.0021.00
#00000017.4221.001.001.00
##00000017.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC9C
Deuteranopia (green-blind)
#F8E9A6
Tritanopia (blue-blind)
#D0F0E1
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #cdf7a2;
/* rgb */ color: rgb(205, 247, 162);
/* oklch */ color: oklch(92.7% 0.118 129.8);
Tailwind
colors: {
  custom: {
    50: '#ddfabe',
    500: '#cdf7a2',
    950: '#000000',
  },
}
SCSS
$custom: #cdf7a2;
$custom-light: #ddfabe;
$custom-dark: #000000;
JSON
{
  "hex": "#cdf7a2",
  "rgb": {
    "r": 205,
    "g": 247,
    "b": 162
  },
  "hsl": {
    "h": 89.647,
    "s": 84.158,
    "l": 80.196
  },
  "oklch": {
    "l": 0.92662,
    "c": 0.11825,
    "h": 129.8
  },
  "luminance": 0.82109
}

Semantic roles & 50–950 ramp

primary
#CDF7A2
secondary
#9E66D7
accent
#05E171
background
#FEFFFD
surface
#FCFFF8
border
#D5D7D1
text
#151712
muted
#848582

Preview Lab

Preview with #CDF7A2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CDF7A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva