#CCD987#CCD987

#CCD987 is a very light, moderate yellow. Relative luminance 0.642; OKLCH L 85.7% C 0.106 H 116.0°. Best body text is #000000 at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#CCD987
RGBrgb(204, 217, 135)
HSLhsl(70, 52%, 69%)
HSVhsv(70, 38%, 85%)
CMYKcmyk(6%, 0%, 37.8%, 14.9%)
CIE-LABlab(84.08, -17.02, 38.94)
CIE-LCHlch(84.08, 42.50, 113.61°)
OKLaboklab(85.68% -0.0466 0.0954)
OKLCHoklch(85.68% 0.106 116)
XYZxyz(54.0881, 64.2128, 32.4619)
Luminance0.6421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD987 #9487D9
analogous
#D9BD87 #CCD987 #A3D987
triadic
#CCD987 #87CCD9 #D987CC
tetradic
#CCD987 #87D9BD #9487D9 #D987A3
square
#CCD987 #87D9BD #9487D9 #D987A3
split-complementary
#CCD987 #87A3D9 #BD87D9
monochromatic
#9BAE37 #B8CA59 #CCD987 #E0E8B5 #F4F6E4

Accessibility & contrast

On white

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

On black

13.84
#CCD987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD987
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD987#FFFFFF#000000##000000
##CCD9871.001.5213.8413.84
#FFFFFF1.521.0021.0021.00
#00000013.8421.001.001.00
##00000013.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D181
Deuteranopia (green-blind)
#E2D28B
Tritanopia (blue-blind)
#D4D1C5
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #ccd987;
/* rgb */ color: rgb(204, 217, 135);
/* oklch */ color: oklch(85.7% 0.106 116.0);
Tailwind
colors: {
  custom: {
    50: '#dce4ab',
    500: '#ccd987',
    950: '#000000',
  },
}
SCSS
$custom: #ccd987;
$custom-light: #dce4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd987",
  "rgb": {
    "r": 204,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 69.512,
    "s": 51.899,
    "l": 69.02
  },
  "oklch": {
    "l": 0.85675,
    "c": 0.10621,
    "h": 116
  },
  "luminance": 0.64212
}

Semantic roles & 50–950 ramp

primary
#CCD987
secondary
#6355AF
accent
#26BF3E
background
#FEFEFD
surface
#FCFCF7
border
#D5D5D0
text
#151510
muted
#848481

Preview Lab

Preview with #CCD987

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

Preview Lab → · Contrast checker → · Palette generator →

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