#CDC187#CDC187

#CDC187 is a light, moderate yellow. Relative luminance 0.529; OKLCH L 80.7% C 0.077 H 97.9°. Best body text is #000000 at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#CDC187
RGBrgb(205, 193, 135)
HSLhsl(50, 41%, 67%)
HSVhsv(50, 34%, 80%)
CMYKcmyk(0%, 5.9%, 34.1%, 19.6%)
CIE-LABlab(77.80, -4.42, 30.77)
CIE-LCHlch(77.80, 31.09, 98.17°)
OKLaboklab(80.71% -0.0106 0.0765)
OKLCHoklch(80.71% 0.077 97.9)
XYZxyz(48.6206, 52.8696, 30.5606)
Luminance0.5287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC187 #8793CD
analogous
#CD9E87 #CDC187 #B6CD87
triadic
#CDC187 #87CDC1 #C187CD
tetradic
#CDC187 #87CD9E #8793CD #CD87B6
square
#CDC187 #87CD9E #8793CD #CD87B6
split-complementary
#CDC187 #87B6CD #9E87CD
monochromatic
#9A8A40 #BBAB5C #CDC187 #DFD7B2 #F1EEDD

Accessibility & contrast

On white

1.81
#CDC187 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.57
#CDC187 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC187
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC187#FFFFFF#000000##000000
##CDC1871.001.8111.5711.57
#FFFFFF1.811.0021.0021.00
#00000011.5721.001.001.00
##00000011.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBE83
Deuteranopia (green-blind)
#D0C289
Tritanopia (blue-blind)
#D7B9B2
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cdc187;
/* rgb */ color: rgb(205, 193, 135);
/* oklch */ color: oklch(80.7% 0.077 97.9);
Tailwind
colors: {
  custom: {
    50: '#ddd3aa',
    500: '#cdc187',
    950: '#000000',
  },
}
SCSS
$custom: #cdc187;
$custom-light: #ddd3aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc187",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 135
  },
  "hsl": {
    "h": 49.714,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.80708,
    "c": 0.07721,
    "h": 97.9
  },
  "luminance": 0.52868
}

Semantic roles & 50–950 ramp

primary
#CDC187
secondary
#5865A0
accent
#48B431
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC187

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

Preview Lab → · Contrast checker → · Palette generator →

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