#CDC87F#CDC87F

#CDC87F is a very light, moderate yellow. Relative luminance 0.558; OKLCH L 82.0% C 0.094 H 104.9°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#CDC87F
RGBrgb(205, 200, 127)
HSLhsl(56, 44%, 65%)
HSVhsv(56, 38%, 80%)
CMYKcmyk(0%, 2.4%, 38%, 19.6%)
CIE-LABlab(79.51, -8.97, 37.14)
CIE-LCHlch(79.51, 38.21, 103.58°)
OKLaboklab(82.02% -0.0242 0.091)
OKLCHoklch(82.02% 0.094 104.9)
XYZxyz(49.6626, 55.8212, 28.2330)
Luminance0.5582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC87F #7F84CD
analogous
#CDA17F #CDC87F #ABCD7F
triadic
#CDC87F #7FCDC8 #C87FCD
tetradic
#CDC87F #7FCDA1 #7F84CD #CD7FAB
square
#CDC87F #7FCDA1 #7F84CD #CD7FAB
split-complementary
#CDC87F #7FABCD #A17FCD
monochromatic
#97913B #BCB553 #CDC87F #DEDBAB #EFEED7

Accessibility & contrast

On white

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

On black

12.16
#CDC87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC87F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC87F#FFFFFF#000000##000000
##CDC87F1.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C37A
Deuteranopia (green-blind)
#D6C782
Tritanopia (blue-blind)
#D8BFB6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc87f;
/* rgb */ color: rgb(205, 200, 127);
/* oklch */ color: oklch(82.0% 0.094 104.9);
Tailwind
colors: {
  custom: {
    50: '#ddd8a5',
    500: '#cdc87f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc87f;
$custom-light: #ddd8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc87f",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 56.154,
    "s": 43.82,
    "l": 65.098
  },
  "oklch": {
    "l": 0.82024,
    "c": 0.09412,
    "h": 104.9
  },
  "luminance": 0.5582
}

Semantic roles & 50–950 ramp

primary
#CDC87F
secondary
#53589D
accent
#37B72F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC87F

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

Preview Lab → · Contrast checker → · Palette generator →

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