#CEC387#CEC387

#CEC387 is a light, moderate yellow. Relative luminance 0.539; OKLCH L 81.2% C 0.079 H 99.0°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#CEC387
RGBrgb(206, 195, 135)
HSLhsl(51, 42%, 67%)
HSVhsv(51, 34%, 81%)
CMYKcmyk(0%, 5.3%, 34.5%, 19.2%)
CIE-LABlab(78.40, -5.07, 31.59)
CIE-LCHlch(78.40, 31.99, 99.11°)
OKLaboklab(81.21% -0.0125 0.0784)
OKLCHoklch(81.21% 0.079 99)
XYZxyz(49.3425, 53.9026, 30.7220)
Luminance0.5390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC387 #8792CE
analogous
#CEA087 #CEC387 #B6CE87
triadic
#CEC387 #87CEC3 #C387CE
tetradic
#CEC387 #87CEA0 #8792CE #CE87B6
square
#CEC387 #87CEA0 #8792CE #CE87B6
split-complementary
#CEC387 #87B6CE #A087CE
monochromatic
#9B8D3F #BCAD5C #CEC387 #E0D9B2 #F1EEDE

Accessibility & contrast

On white

1.78
#CEC387 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#CEC387 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC387
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC387#FFFFFF#000000##000000
##CEC3871.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec387;
/* rgb */ color: rgb(206, 195, 135);
/* oklch */ color: oklch(81.2% 0.079 99.0);
Tailwind
colors: {
  custom: {
    50: '#ded5aa',
    500: '#cec387',
    950: '#000000',
  },
}
SCSS
$custom: #cec387;
$custom-light: #ded5aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cec387",
  "rgb": {
    "r": 206,
    "g": 195,
    "b": 135
  },
  "hsl": {
    "h": 50.704,
    "s": 42.012,
    "l": 66.863
  },
  "oklch": {
    "l": 0.81208,
    "c": 0.07938,
    "h": 99
  },
  "luminance": 0.53901
}

Semantic roles & 50–950 ramp

primary
#CEC387
secondary
#5863A1
accent
#45B530
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CEC387

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

Preview Lab → · Contrast checker → · Palette generator →

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