#CCD97F#CCD97F

#CCD97F is a very light, moderate yellow. Relative luminance 0.640; OKLCH L 85.5% C 0.115 H 115.6°. Best body text is #000000 at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#CCD97F
RGBrgb(204, 217, 127)
HSLhsl(69, 54%, 67%)
HSVhsv(69, 41%, 85%)
CMYKcmyk(6%, 0%, 41.5%, 14.9%)
CIE-LABlab(83.96, -17.93, 42.78)
CIE-LCHlch(83.96, 46.38, 112.73°)
OKLaboklab(85.55% -0.0497 0.1038)
OKLCHoklch(85.55% 0.115 115.6)
XYZxyz(53.5459, 63.9959, 29.6062)
Luminance0.6400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD97F #8C7FD9
analogous
#D9B97F #CCD97F #9FD97F
triadic
#CCD97F #7FCCD9 #D97FCC
tetradic
#CCD97F #7FD9B9 #8C7FD9 #D97F9F
square
#CCD97F #7FD9B9 #8C7FD9 #D97F9F
split-complementary
#CCD97F #7F9FD9 #B97FD9
monochromatic
#9AAB33 #B9CB50 #CCD97F #DFE7AE #F2F5DD

Accessibility & contrast

On white

1.52
#CCD97F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.80
#CCD97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD97F
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD97F#FFFFFF#000000##000000
##CCD97F1.001.5213.8013.80
#FFFFFF1.521.0021.0021.00
#00000013.8021.001.001.00
##00000013.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D178
Deuteranopia (green-blind)
#E3D283
Tritanopia (blue-blind)
#D5D0C3
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #ccd97f;
/* rgb */ color: rgb(204, 217, 127);
/* oklch */ color: oklch(85.5% 0.115 115.6);
Tailwind
colors: {
  custom: {
    50: '#dde4a5',
    500: '#ccd97f',
    950: '#000000',
  },
}
SCSS
$custom: #ccd97f;
$custom-light: #dde4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd97f",
  "rgb": {
    "r": 204,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 68.667,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.85548,
    "c": 0.11509,
    "h": 115.6
  },
  "luminance": 0.63995
}

Semantic roles & 50–950 ramp

primary
#CCD97F
secondary
#5C4EAE
accent
#24C23B
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480

Preview Lab

Preview with #CCD97F

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

Preview Lab → · Contrast checker → · Palette generator →

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