#CCD98F#CCD98F

#CCD98F is a very light, moderate yellow-green. Relative luminance 0.644; OKLCH L 85.8% C 0.097 H 116.6°. Best body text is #000000 at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#CCD98F
RGBrgb(204, 217, 143)
HSLhsl(71, 49%, 71%)
HSVhsv(71, 34%, 85%)
CMYKcmyk(6%, 0%, 34.1%, 14.9%)
CIE-LABlab(84.20, -16.06, 35.05)
CIE-LCHlch(84.20, 38.55, 114.62°)
OKLaboklab(85.81% -0.0434 0.0867)
OKLCHoklch(85.81% 0.097 116.6)
XYZxyz(54.6726, 64.4466, 35.5405)
Luminance0.6445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD98F #9C8FD9
analogous
#D9C18F #CCD98F #A7D98F
triadic
#CCD98F #8FCCD9 #D98FCC
tetradic
#CCD98F #8FD9C1 #9C8FD9 #D98FA7
square
#CCD98F #8FD9C1 #9C8FD9 #D98FA7
split-complementary
#CCD98F #8FA7D9 #C18FD9
monochromatic
#9DB13C #B7C961 #CCD98F #E1E9BD #F5F7E8

Accessibility & contrast

On white

1.51
#CCD98F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.89
#CCD98F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD98F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD98F#FFFFFF#000000##000000
##CCD98F1.001.5113.8913.89
#FFFFFF1.511.0021.0021.00
#00000013.8921.001.001.00
##00000013.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3D28A
Deuteranopia (green-blind)
#E1D392
Tritanopia (blue-blind)
#D4D1C6
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #ccd98f;
/* rgb */ color: rgb(204, 217, 143);
/* oklch */ color: oklch(85.8% 0.097 116.6);
Tailwind
colors: {
  custom: {
    50: '#dce4b0',
    500: '#ccd98f',
    950: '#000000',
  },
}
SCSS
$custom: #ccd98f;
$custom-light: #dce4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd98f",
  "rgb": {
    "r": 204,
    "g": 217,
    "b": 143
  },
  "hsl": {
    "h": 70.541,
    "s": 49.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.85811,
    "c": 0.09701,
    "h": 116.6
  },
  "luminance": 0.64446
}

Semantic roles & 50–950 ramp

primary
#CCD98F
secondary
#6B5CB0
accent
#29BD43
background
#FEFEFD
surface
#FCFCF7
border
#D5D5D0
text
#151510
muted
#848481

Preview Lab

Preview with #CCD98F

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

Preview Lab → · Contrast checker → · Palette generator →

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