#CDC87B#CDC87B

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

Color values

HEX#CDC87B
RGBrgb(205, 200, 123)
HSLhsl(56, 45%, 64%)
HSVhsv(56, 40%, 80%)
CMYKcmyk(0%, 2.4%, 40%, 19.6%)
CIE-LABlab(79.45, -9.41, 39.10)
CIE-LCHlch(79.45, 40.22, 103.53°)
OKLaboklab(81.96% -0.0258 0.0952)
OKLCHoklch(81.96% 0.099 105.1)
XYZxyz(49.4071, 55.7189, 26.8872)
Luminance0.5572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC87B #7B80CD
analogous
#CD9F7B #CDC87B #A9CD7B
triadic
#CDC87B #7BCDC8 #C87BCD
tetradic
#CDC87B #7BCD9F #7B80CD #CD7BA9
square
#CDC87B #7BCD9F #7B80CD #CD7BA9
split-complementary
#CDC87B #7BA9CD #9F7BCD
monochromatic
#958F38 #BCB64F #CDC87B #DEDAA7 #EFEDD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC87B#FFFFFF#000000##000000
##CDC87B1.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)
#D4C375
Deuteranopia (green-blind)
#D7C77E
Tritanopia (blue-blind)
#D8BFB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc87b;
/* rgb */ color: rgb(205, 200, 123);
/* oklch */ color: oklch(82.0% 0.099 105.1);
Tailwind
colors: {
  custom: {
    50: '#ddd8a2',
    500: '#cdc87b',
    950: '#000000',
  },
}
SCSS
$custom: #cdc87b;
$custom-light: #ddd8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc87b",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 123
  },
  "hsl": {
    "h": 56.341,
    "s": 45.055,
    "l": 64.314
  },
  "oklch": {
    "l": 0.81959,
    "c": 0.09866,
    "h": 105.1
  },
  "luminance": 0.55718
}

Semantic roles & 50–950 ramp

primary
#CDC87B
secondary
#51559B
accent
#36B82D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC87B

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

Preview Lab → · Contrast checker → · Palette generator →

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