#CDF798#CDF798

#CDF798 is a very light, vivid yellow-green. Relative luminance 0.818; OKLCH L 92.5% C 0.129 H 128.1°. Best body text is #000000 at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#CDF798
RGBrgb(205, 247, 152)
HSLhsl(87, 86%, 78%)
HSVhsv(87, 38%, 97%)
CMYKcmyk(17%, 0%, 38.5%, 3.1%)
CIE-LABlab(92.47, -29.07, 41.31)
CIE-LCHlch(92.47, 50.51, 125.13°)
OKLaboklab(92.49% -0.0797 0.1016)
OKLCHoklch(92.49% 0.129 128.1)
XYZxyz(64.1044, 81.7669, 42.1050)
Luminance0.8177 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDF798 #C298F7
analogous
#F7F198 #CDF798 #9DF798
triadic
#CDF798 #98CDF7 #F798CD
tetradic
#CDF798 #98F7F1 #C298F7 #F7989D
square
#CDF798 #98F7F1 #C298F7 #F7989D
split-complementary
#CDF798 #989DF7 #F198F7
monochromatic
#96EE26 #B1F35F #CDF798 #E9FBD1 #F1FDE3

Accessibility & contrast

On white

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

On black

17.35
#CDF798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDF798
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDF798#FFFFFF#000000##000000
##CDF7981.001.2117.3517.35
#FFFFFF1.211.0021.0021.00
#00000017.3521.001.001.00
##00000017.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB91
Deuteranopia (green-blind)
#FAE99D
Tritanopia (blue-blind)
#D1EFDF
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #cdf798;
/* rgb */ color: rgb(205, 247, 152);
/* oklch */ color: oklch(92.5% 0.129 128.1);
Tailwind
colors: {
  custom: {
    50: '#ddfab7',
    500: '#cdf798',
    950: '#000000',
  },
}
SCSS
$custom: #cdf798;
$custom-light: #ddfab7;
$custom-dark: #000000;
JSON
{
  "hex": "#cdf798",
  "rgb": {
    "r": 205,
    "g": 247,
    "b": 152
  },
  "hsl": {
    "h": 86.526,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.92492,
    "c": 0.1291,
    "h": 128.1
  },
  "luminance": 0.81768
}

Semantic roles & 50–950 ramp

primary
#CDF798
secondary
#935DD6
accent
#03E266
background
#FEFFFD
surface
#FCFFF8
border
#D5D7D1
text
#151711
muted
#848581

Preview Lab

Preview with #CDF798

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

Preview Lab → · Contrast checker → · Palette generator →

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