#CDC87D#CDC87D

#CDC87D is a light, moderate yellow. Relative luminance 0.558; OKLCH L 82.0% C 0.096 H 105.0°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#CDC87D
RGBrgb(205, 200, 125)
HSLhsl(56, 44%, 65%)
HSVhsv(56, 39%, 80%)
CMYKcmyk(0%, 2.4%, 39%, 19.6%)
CIE-LABlab(79.48, -9.19, 38.12)
CIE-LCHlch(79.48, 39.21, 103.56°)
OKLaboklab(81.99% -0.025 0.0931)
OKLCHoklch(81.99% 0.096 105)
XYZxyz(49.5336, 55.7695, 27.5533)
Luminance0.5577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC87D #7D82CD
analogous
#CDA07D #CDC87D #AACD7D
triadic
#CDC87D #7DCDC8 #C87DCD
tetradic
#CDC87D #7DCDA0 #7D82CD #CD7DAA
square
#CDC87D #7DCDA0 #7D82CD #CD7DAA
split-complementary
#CDC87D #7DAACD #A07DCD
monochromatic
#96903A #BCB551 #CDC87D #DEDBA9 #EFEDD5

Accessibility & contrast

On white

1.73
#CDC87D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.15
#CDC87D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC87D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC87D#FFFFFF#000000##000000
##CDC87D1.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C377
Deuteranopia (green-blind)
#D6C780
Tritanopia (blue-blind)
#D8BFB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc87d;
/* rgb */ color: rgb(205, 200, 125);
/* oklch */ color: oklch(82.0% 0.096 105.0);
Tailwind
colors: {
  custom: {
    50: '#ddd8a3',
    500: '#cdc87d',
    950: '#000000',
  },
}
SCSS
$custom: #cdc87d;
$custom-light: #ddd8a3;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc87d",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 125
  },
  "hsl": {
    "h": 56.25,
    "s": 44.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.81991,
    "c": 0.0964,
    "h": 105
  },
  "luminance": 0.55768
}

Semantic roles & 50–950 ramp

primary
#CDC87D
secondary
#52579C
accent
#37B82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC87D

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

Preview Lab → · Contrast checker → · Palette generator →

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