#CCD98C#CCD98C

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

Color values

HEX#CCD98C
RGBrgb(204, 217, 140)
HSLhsl(70, 50%, 70%)
HSVhsv(70, 35%, 85%)
CMYKcmyk(6%, 0%, 35.5%, 14.9%)
CIE-LABlab(84.15, -16.43, 36.51)
CIE-LCHlch(84.15, 40.04, 114.22°)
OKLaboklab(85.76% -0.0446 0.09)
OKLCHoklch(85.76% 0.1 116.4)
XYZxyz(54.4484, 64.3570, 34.3596)
Luminance0.6436 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD98C #998CD9
analogous
#D9C08C #CCD98C #A5D98C
triadic
#CCD98C #8CCCD9 #D98CCC
tetradic
#CCD98C #8CD9C0 #998CD9 #D98CA5
square
#CCD98C #8CD9C0 #998CD9 #D98CA5
split-complementary
#CCD98C #8CA5D9 #C08CD9
monochromatic
#9CB03A #B8CA5E #CCD98C #E0E8BA #F5F7E8

Accessibility & contrast

On white

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

On black

13.87
#CCD98C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD98C
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD98C#FFFFFF#000000##000000
##CCD98C1.001.5113.8713.87
#FFFFFF1.511.0021.0021.00
#00000013.8721.001.001.00
##00000013.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccd98c;
/* rgb */ color: rgb(204, 217, 140);
/* oklch */ color: oklch(85.8% 0.100 116.4);
Tailwind
colors: {
  custom: {
    50: '#dce4ae',
    500: '#ccd98c',
    950: '#000000',
  },
}
SCSS
$custom: #ccd98c;
$custom-light: #dce4ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd98c",
  "rgb": {
    "r": 204,
    "g": 217,
    "b": 140
  },
  "hsl": {
    "h": 70.13,
    "s": 50.327,
    "l": 70
  },
  "oklch": {
    "l": 0.85759,
    "c": 0.10049,
    "h": 116.4
  },
  "luminance": 0.64357
}

Semantic roles & 50–950 ramp

primary
#CCD98C
secondary
#6859B0
accent
#28BE41
background
#FEFEFD
surface
#FCFCF7
border
#D5D5D0
text
#151510
muted
#848481

Preview Lab

Preview with #CCD98C

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

Preview Lab → · Contrast checker → · Palette generator →

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