#CCD997#CCD997

#CCD997 is a very light, moderate yellow-green. Relative luminance 0.647; OKLCH L 86.0% C 0.088 H 117.3°. Best body text is #000000 at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#CCD997
RGBrgb(204, 217, 151)
HSLhsl(72, 46%, 72%)
HSVhsv(72, 30%, 85%)
CMYKcmyk(6%, 0%, 30.4%, 14.9%)
CIE-LABlab(84.33, -15.03, 31.13)
CIE-LCHlch(84.33, 34.57, 115.78°)
OKLaboklab(85.96% -0.0402 0.0778)
OKLCHoklch(85.96% 0.088 117.3)
XYZxyz(55.3004, 64.6978, 38.8468)
Luminance0.6470 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD997 #A497D9
analogous
#D9C597 #CCD997 #ABD997
triadic
#CCD997 #97CCD9 #D997CC
tetradic
#CCD997 #97D9C5 #A497D9 #D997AB
square
#CCD997 #97D9C5 #A497D9 #D997AB
split-complementary
#CCD997 #97ABD9 #C597D9
monochromatic
#9DB442 #B6C96A #CCD997 #E2E9C4 #F4F7E9

Accessibility & contrast

On white

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

On black

13.94
#CCD997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD997
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD997#FFFFFF#000000##000000
##CCD9971.001.5113.9413.94
#FFFFFF1.511.0021.0021.00
#00000013.9421.001.001.00
##00000013.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2D293
Deuteranopia (green-blind)
#E0D39A
Tritanopia (blue-blind)
#D3D2C8
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #ccd997;
/* rgb */ color: rgb(204, 217, 151);
/* oklch */ color: oklch(86.0% 0.088 117.3);
Tailwind
colors: {
  custom: {
    50: '#dce4b6',
    500: '#ccd997',
    950: '#000000',
  },
}
SCSS
$custom: #ccd997;
$custom-light: #dce4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd997",
  "rgb": {
    "r": 204,
    "g": 217,
    "b": 151
  },
  "hsl": {
    "h": 71.818,
    "s": 46.479,
    "l": 72.157
  },
  "oklch": {
    "l": 0.85957,
    "c": 0.08754,
    "h": 117.3
  },
  "luminance": 0.64697
}

Semantic roles & 50–950 ramp

primary
#CCD997
secondary
#7364B0
accent
#2CBA48
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #CCD997

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

Preview Lab → · Contrast checker → · Palette generator →

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