#CDC87A#CDC87A

#CDC87A is a light, moderate yellow. Relative luminance 0.557; OKLCH L 81.9% C 0.100 H 105.2°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#CDC87A
RGBrgb(205, 200, 122)
HSLhsl(56, 45%, 64%)
HSVhsv(56, 40%, 80%)
CMYKcmyk(0%, 2.4%, 40.5%, 19.6%)
CIE-LABlab(79.44, -9.52, 39.59)
CIE-LCHlch(79.44, 40.72, 103.52°)
OKLaboklab(81.94% -0.0262 0.0963)
OKLCHoklch(81.94% 0.1 105.2)
XYZxyz(49.3448, 55.6940, 26.5592)
Luminance0.5569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC87A #7A7FCD
analogous
#CD9F7A #CDC87A #A9CD7A
triadic
#CDC87A #7ACDC8 #C87ACD
tetradic
#CDC87A #7ACD9F #7A7FCD #CD7AA9
square
#CDC87A #7ACD9F #7A7FCD #CD7AA9
split-complementary
#CDC87A #7AA9CD #9F7ACD
monochromatic
#958F38 #BCB64E #CDC87A #DEDAA6 #EEEDD3

Accessibility & contrast

On white

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

On black

12.14
#CDC87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC87A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC87A#FFFFFF#000000##000000
##CDC87A1.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc87a;
/* rgb */ color: rgb(205, 200, 122);
/* oklch */ color: oklch(81.9% 0.100 105.2);
Tailwind
colors: {
  custom: {
    50: '#ddd8a1',
    500: '#cdc87a',
    950: '#000000',
  },
}
SCSS
$custom: #cdc87a;
$custom-light: #ddd8a1;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc87a",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 122
  },
  "hsl": {
    "h": 56.386,
    "s": 45.355,
    "l": 64.118
  },
  "oklch": {
    "l": 0.81943,
    "c": 0.09977,
    "h": 105.2
  },
  "luminance": 0.55693
}

Semantic roles & 50–950 ramp

primary
#CDC87A
secondary
#50559B
accent
#35B92D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC87A

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

Preview Lab → · Contrast checker → · Palette generator →

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