#CDC387#CDC387

#CDC387 is a light, moderate yellow. Relative luminance 0.538; OKLCH L 81.1% C 0.079 H 99.9°. Best body text is #000000 at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#CDC387
RGBrgb(205, 195, 135)
HSLhsl(51, 41%, 67%)
HSVhsv(51, 34%, 80%)
CMYKcmyk(0%, 4.9%, 34.1%, 19.6%)
CIE-LABlab(78.32, -5.46, 31.46)
CIE-LCHlch(78.32, 31.93, 99.85°)
OKLaboklab(81.12% -0.0136 0.0781)
OKLCHoklch(81.12% 0.079 99.9)
XYZxyz(49.0657, 53.7599, 30.7090)
Luminance0.5376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC387 #8791CD
analogous
#CDA087 #CDC387 #B4CD87
triadic
#CDC387 #87CDC3 #C387CD
tetradic
#CDC387 #87CDA0 #8791CD #CD87B4
square
#CDC387 #87CDA0 #8791CD #CD87B4
split-complementary
#CDC387 #87B4CD #A087CD
monochromatic
#9A8D40 #BBAD5C #CDC387 #DFD9B2 #F1EEDD

Accessibility & contrast

On white

1.79
#CDC387 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.75
#CDC387 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC387
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC387#FFFFFF#000000##000000
##CDC3871.001.7911.7511.75
#FFFFFF1.791.0021.0021.00
#00000011.7521.001.001.00
##00000011.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBF83
Deuteranopia (green-blind)
#D1C489
Tritanopia (blue-blind)
#D7BBB4
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc387;
/* rgb */ color: rgb(205, 195, 135);
/* oklch */ color: oklch(81.1% 0.079 99.9);
Tailwind
colors: {
  custom: {
    50: '#ddd5aa',
    500: '#cdc387',
    950: '#000000',
  },
}
SCSS
$custom: #cdc387;
$custom-light: #ddd5aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc387",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 135
  },
  "hsl": {
    "h": 51.429,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.81122,
    "c": 0.07928,
    "h": 99.9
  },
  "luminance": 0.53759
}

Semantic roles & 50–950 ramp

primary
#CDC387
secondary
#5863A0
accent
#44B431
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC387

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

Preview Lab → · Contrast checker → · Palette generator →

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