#CDC787#CDC787

#CDC787 is a light, moderate yellow. Relative luminance 0.556; OKLCH L 82.0% C 0.084 H 103.5°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#CDC787
RGBrgb(205, 199, 135)
HSLhsl(55, 41%, 67%)
HSVhsv(55, 34%, 80%)
CMYKcmyk(0%, 2.9%, 34.1%, 19.6%)
CIE-LABlab(79.37, -7.53, 32.85)
CIE-LCHlch(79.37, 33.70, 102.91°)
OKLaboklab(81.95% -0.0195 0.0813)
OKLCHoklch(81.95% 0.084 103.5)
XYZxyz(49.9740, 55.5764, 31.0118)
Luminance0.5557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC787 #878DCD
analogous
#CDA487 #CDC787 #B0CD87
triadic
#CDC787 #87CDC7 #C787CD
tetradic
#CDC787 #87CDA4 #878DCD #CD87B0
square
#CDC787 #87CDA4 #878DCD #CD87B0
split-complementary
#CDC787 #87B0CD #A487CD
monochromatic
#9A9240 #BBB35C #CDC787 #DFDBB2 #F1EFDD

Accessibility & contrast

On white

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

On black

12.12
#CDC787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC787
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC787#FFFFFF#000000##000000
##CDC7871.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2C382
Deuteranopia (green-blind)
#D4C689
Tritanopia (blue-blind)
#D7BFB7
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc787;
/* rgb */ color: rgb(205, 199, 135);
/* oklch */ color: oklch(82.0% 0.084 103.5);
Tailwind
colors: {
  custom: {
    50: '#ddd7aa',
    500: '#cdc787',
    950: '#000000',
  },
}
SCSS
$custom: #cdc787;
$custom-light: #ddd7aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc787",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 135
  },
  "hsl": {
    "h": 54.857,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.81954,
    "c": 0.08364,
    "h": 103.5
  },
  "luminance": 0.55575
}

Semantic roles & 50–950 ramp

primary
#CDC787
secondary
#585EA0
accent
#3DB431
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC787

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

Preview Lab → · Contrast checker → · Palette generator →

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