#CEC587#CEC587

#CEC587 is a light, moderate yellow. Relative luminance 0.548; OKLCH L 81.6% C 0.081 H 100.9°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#CEC587
RGBrgb(206, 197, 135)
HSLhsl(52, 42%, 67%)
HSVhsv(52, 34%, 81%)
CMYKcmyk(0%, 4.4%, 34.5%, 19.2%)
CIE-LABlab(78.93, -6.10, 32.28)
CIE-LCHlch(78.93, 32.85, 100.71°)
OKLaboklab(81.62% -0.0155 0.08)
OKLCHoklch(81.62% 0.081 100.9)
XYZxyz(49.7937, 54.8048, 30.8723)
Luminance0.5480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC587 #8790CE
analogous
#CEA287 #CEC587 #B4CE87
triadic
#CEC587 #87CEC5 #C587CE
tetradic
#CEC587 #87CEA2 #8790CE #CE87B4
square
#CEC587 #87CEA2 #8790CE #CE87B4
split-complementary
#CEC587 #87B4CE #A287CE
monochromatic
#9B903F #BCB05C #CEC587 #E0DAB2 #F1EFDE

Accessibility & contrast

On white

1.76
#CEC587 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.96
#CEC587 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC587
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC587#FFFFFF#000000##000000
##CEC5871.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0C183
Deuteranopia (green-blind)
#D3C589
Tritanopia (blue-blind)
#D8BDB5
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec587;
/* rgb */ color: rgb(206, 197, 135);
/* oklch */ color: oklch(81.6% 0.081 100.9);
Tailwind
colors: {
  custom: {
    50: '#ded6aa',
    500: '#cec587',
    950: '#000000',
  },
}
SCSS
$custom: #cec587;
$custom-light: #ded6aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cec587",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 135
  },
  "hsl": {
    "h": 52.394,
    "s": 42.012,
    "l": 66.863
  },
  "oklch": {
    "l": 0.81622,
    "c": 0.08149,
    "h": 100.9
  },
  "luminance": 0.54804
}

Semantic roles & 50–950 ramp

primary
#CEC587
secondary
#5861A1
accent
#41B530
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CEC587

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

Preview Lab → · Contrast checker → · Palette generator →

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