#CCC987#CCC987

#CCC987 is a very light, moderate yellow. Relative luminance 0.564; OKLCH L 82.3% C 0.086 H 105.9°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#CCC987
RGBrgb(204, 201, 135)
HSLhsl(57, 40%, 66%)
HSVhsv(57, 34%, 80%)
CMYKcmyk(0%, 1.5%, 33.8%, 20%)
CIE-LABlab(79.82, -8.95, 33.42)
CIE-LCHlch(79.82, 34.59, 104.99°)
OKLaboklab(82.29% -0.0236 0.0827)
OKLCHoklch(82.29% 0.086 105.9)
XYZxyz(50.1622, 56.3609, 31.1533)
Luminance0.5636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC987 #878ACC
analogous
#CCA787 #CCC987 #ADCC87
triadic
#CCC987 #87CCC9 #C987CC
tetradic
#CCC987 #87CCA7 #878ACC #CC87AD
square
#CCC987 #87CCA7 #878ACC #CC87AD
split-complementary
#CCC987 #87ADCC #A787CC
monochromatic
#989441 #BAB65C #CCC987 #DEDCB2 #F1F0DD

Accessibility & contrast

On white

1.71
#CCC987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#CCC987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC987
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC987#FFFFFF#000000##000000
##CCC9871.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C482
Deuteranopia (green-blind)
#D6C78A
Tritanopia (blue-blind)
#D6C1B8
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #ccc987;
/* rgb */ color: rgb(204, 201, 135);
/* oklch */ color: oklch(82.3% 0.086 105.9);
Tailwind
colors: {
  custom: {
    50: '#dcd9aa',
    500: '#ccc987',
    950: '#000000',
  },
}
SCSS
$custom: #ccc987;
$custom-light: #dcd9aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc987",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 135
  },
  "hsl": {
    "h": 57.391,
    "s": 40.351,
    "l": 66.471
  },
  "oklch": {
    "l": 0.82288,
    "c": 0.08597,
    "h": 105.9
  },
  "luminance": 0.5636
}

Semantic roles & 50–950 ramp

primary
#CCC987
secondary
#595C9F
accent
#38B332
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CCC987

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

Preview Lab → · Contrast checker → · Palette generator →

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