#CCD187#CCD187

#CCD187 is a very light, moderate yellow. Relative luminance 0.602; OKLCH L 84.0% C 0.096 H 111.6°. Best body text is #000000 at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#CCD187
RGBrgb(204, 209, 135)
HSLhsl(64, 45%, 67%)
HSVhsv(64, 35%, 82%)
CMYKcmyk(2.4%, 0%, 35.4%, 18%)
CIE-LABlab(81.94, -13.02, 36.18)
CIE-LCHlch(81.94, 38.45, 109.79°)
OKLaboklab(83.97% -0.0352 0.0891)
OKLCHoklch(83.97% 0.096 111.6)
XYZxyz(52.0758, 60.1883, 31.7912)
Luminance0.6019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD187 #8C87D1
analogous
#D1B187 #CCD187 #A7D187
triadic
#CCD187 #87CCD1 #D187CC
tetradic
#CCD187 #87D1B1 #8C87D1 #D187A7
square
#CCD187 #87D1B1 #8C87D1 #D187A7
split-complementary
#CCD187 #87A7D1 #B187D1
monochromatic
#9AA03D #B9C05B #CCD187 #DFE2B3 #F2F3DF

Accessibility & contrast

On white

1.61
#CCD187 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.04
#CCD187 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD187
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD187#FFFFFF#000000##000000
##CCD1871.001.6113.0413.04
#FFFFFF1.611.0021.0021.00
#00000013.0421.001.001.00
##00000013.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCCB82
Deuteranopia (green-blind)
#DCCD8A
Tritanopia (blue-blind)
#D5C9BE
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #ccd187;
/* rgb */ color: rgb(204, 209, 135);
/* oklch */ color: oklch(84.0% 0.096 111.6);
Tailwind
colors: {
  custom: {
    50: '#dcdfab',
    500: '#ccd187',
    950: '#000000',
  },
}
SCSS
$custom: #ccd187;
$custom-light: #dcdfab;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd187",
  "rgb": {
    "r": 204,
    "g": 209,
    "b": 135
  },
  "hsl": {
    "h": 64.054,
    "s": 44.578,
    "l": 67.451
  },
  "oklch": {
    "l": 0.83973,
    "c": 0.09579,
    "h": 111.6
  },
  "luminance": 0.60188
}

Semantic roles & 50–950 ramp

primary
#CCD187
secondary
#5C57A5
accent
#2EB837
background
#FEFEFD
surface
#FCFCF7
border
#D5D5D0
text
#151510
muted
#848481

Preview Lab

Preview with #CCD187

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

Preview Lab → · Contrast checker → · Palette generator →

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