#CDC87C#CDC87C

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

Color values

HEX#CDC87C
RGBrgb(205, 200, 124)
HSLhsl(56, 45%, 65%)
HSVhsv(56, 40%, 80%)
CMYKcmyk(0%, 2.4%, 39.5%, 19.6%)
CIE-LABlab(79.47, -9.30, 38.61)
CIE-LCHlch(79.47, 39.72, 103.55°)
OKLaboklab(81.98% -0.0254 0.0942)
OKLCHoklch(81.98% 0.098 105.1)
XYZxyz(49.4700, 55.7441, 27.2186)
Luminance0.5574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC87C #7C81CD
analogous
#CDA07C #CDC87C #AACD7C
triadic
#CDC87C #7CCDC8 #C87CCD
tetradic
#CDC87C #7CCDA0 #7C81CD #CD7CAA
square
#CDC87C #7CCDA0 #7C81CD #CD7CAA
split-complementary
#CDC87C #7CAACD #A07CCD
monochromatic
#969039 #BCB550 #CDC87C #DEDBA8 #EFEDD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC87C#FFFFFF#000000##000000
##CDC87C1.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)
#D4C376
Deuteranopia (green-blind)
#D6C77F
Tritanopia (blue-blind)
#D8BFB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc87c;
/* rgb */ color: rgb(205, 200, 124);
/* oklch */ color: oklch(82.0% 0.098 105.1);
Tailwind
colors: {
  custom: {
    50: '#ddd8a3',
    500: '#cdc87c',
    950: '#000000',
  },
}
SCSS
$custom: #cdc87c;
$custom-light: #ddd8a3;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc87c",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 124
  },
  "hsl": {
    "h": 56.296,
    "s": 44.751,
    "l": 64.51
  },
  "oklch": {
    "l": 0.81975,
    "c": 0.09753,
    "h": 105.1
  },
  "luminance": 0.55743
}

Semantic roles & 50–950 ramp

primary
#CDC87C
secondary
#51569C
accent
#36B82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC87C

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

Preview Lab → · Contrast checker → · Palette generator →

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