#CEC87F#CEC87F

#CEC87F is a very light, moderate yellow. Relative luminance 0.560; OKLCH L 82.1% C 0.094 H 104.2°. Best body text is #000000 at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#CEC87F
RGBrgb(206, 200, 127)
HSLhsl(55, 45%, 65%)
HSVhsv(55, 38%, 81%)
CMYKcmyk(0%, 2.9%, 38.3%, 19.2%)
CIE-LABlab(79.59, -8.58, 37.26)
CIE-LCHlch(79.59, 38.24, 102.96°)
OKLaboklab(82.11% -0.0231 0.0912)
OKLCHoklch(82.11% 0.094 104.2)
XYZxyz(49.9394, 55.9639, 28.2460)
Luminance0.5596 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC87F #7F85CE
analogous
#CEA07F #CEC87F #ACCE7F
triadic
#CEC87F #7FCEC8 #C87FCE
tetradic
#CEC87F #7FCEA0 #7F85CE #CE7FAC
square
#CEC87F #7FCEA0 #7F85CE #CE7FAC
split-complementary
#CEC87F #7FACCE #A07FCE
monochromatic
#98913A #BDB553 #CEC87F #DFDBAB #F0EED8

Accessibility & contrast

On white

1.72
#CEC87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.19
#CEC87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC87F
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC87F#FFFFFF#000000##000000
##CEC87F1.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C37A
Deuteranopia (green-blind)
#D6C782
Tritanopia (blue-blind)
#D9BFB6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cec87f;
/* rgb */ color: rgb(206, 200, 127);
/* oklch */ color: oklch(82.1% 0.094 104.2);
Tailwind
colors: {
  custom: {
    50: '#ded8a5',
    500: '#cec87f',
    950: '#000000',
  },
}
SCSS
$custom: #cec87f;
$custom-light: #ded8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cec87f",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 55.443,
    "s": 44.633,
    "l": 65.294
  },
  "oklch": {
    "l": 0.82108,
    "c": 0.0941,
    "h": 104.2
  },
  "luminance": 0.55963
}

Semantic roles & 50–950 ramp

primary
#CEC87F
secondary
#53599E
accent
#38B82E
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CEC87F

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

Preview Lab → · Contrast checker → · Palette generator →

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