#CDC987#CDC987

#CDC987 is a very light, moderate yellow. Relative luminance 0.565; OKLCH L 82.4% C 0.086 H 105.2°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#CDC987
RGBrgb(205, 201, 135)
HSLhsl(57, 41%, 67%)
HSVhsv(57, 34%, 80%)
CMYKcmyk(0%, 2%, 34.1%, 19.6%)
CIE-LABlab(79.90, -8.56, 33.54)
CIE-LCHlch(79.90, 34.61, 104.31°)
OKLaboklab(82.37% -0.0225 0.0829)
OKLCHoklch(82.37% 0.086 105.2)
XYZxyz(50.4372, 56.5027, 31.1661)
Luminance0.5650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC987 #878BCD
analogous
#CDA687 #CDC987 #AECD87
triadic
#CDC987 #87CDC9 #C987CD
tetradic
#CDC987 #87CDA6 #878BCD #CD87AE
square
#CDC987 #87CDA6 #878BCD #CD87AE
split-complementary
#CDC987 #87AECD #A687CD
monochromatic
#9A9440 #BBB65C #CDC987 #DFDCB2 #F1F0DD

Accessibility & contrast

On white

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

On black

12.30
#CDC987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC987
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC987#FFFFFF#000000##000000
##CDC9871.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc987;
/* rgb */ color: rgb(205, 201, 135);
/* oklch */ color: oklch(82.4% 0.086 105.2);
Tailwind
colors: {
  custom: {
    50: '#ddd9aa',
    500: '#cdc987',
    950: '#000000',
  },
}
SCSS
$custom: #cdc987;
$custom-light: #ddd9aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc987",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 135
  },
  "hsl": {
    "h": 56.571,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.82371,
    "c": 0.08594,
    "h": 105.2
  },
  "luminance": 0.56502
}

Semantic roles & 50–950 ramp

primary
#CDC987
secondary
#585CA0
accent
#39B431
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC987

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

Preview Lab → · Contrast checker → · Palette generator →

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