#CEC187#CEC187

#CEC187 is a light, moderate yellow. Relative luminance 0.530; OKLCH L 80.8% C 0.077 H 97.0°. Best body text is #000000 at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#CEC187
RGBrgb(206, 193, 135)
HSLhsl(49, 42%, 67%)
HSVhsv(49, 34%, 81%)
CMYKcmyk(0%, 6.3%, 34.5%, 19.2%)
CIE-LABlab(77.88, -4.03, 30.90)
CIE-LCHlch(77.88, 31.16, 97.42°)
OKLaboklab(80.79% -0.0095 0.0768)
OKLCHoklch(80.79% 0.077 97)
XYZxyz(48.8974, 53.0124, 30.5736)
Luminance0.5301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC187 #8794CE
analogous
#CE9E87 #CEC187 #B8CE87
triadic
#CEC187 #87CEC1 #C187CE
tetradic
#CEC187 #87CE9E #8794CE #CE87B8
square
#CEC187 #87CE9E #8794CE #CE87B8
split-complementary
#CEC187 #87B8CE #9E87CE
monochromatic
#9B8A3F #BCAB5C #CEC187 #E0D7B2 #F1EEDE

Accessibility & contrast

On white

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

On black

11.60
#CEC187 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC187
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC187#FFFFFF#000000##000000
##CEC1871.001.8111.6011.60
#FFFFFF1.811.0021.0021.00
#00000011.6021.001.001.00
##00000011.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec187;
/* rgb */ color: rgb(206, 193, 135);
/* oklch */ color: oklch(80.8% 0.077 97.0);
Tailwind
colors: {
  custom: {
    50: '#ded3aa',
    500: '#cec187',
    950: '#000000',
  },
}
SCSS
$custom: #cec187;
$custom-light: #ded3aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cec187",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 135
  },
  "hsl": {
    "h": 49.014,
    "s": 42.012,
    "l": 66.863
  },
  "oklch": {
    "l": 0.80795,
    "c": 0.07736,
    "h": 97
  },
  "luminance": 0.53011
}

Semantic roles & 50–950 ramp

primary
#CEC187
secondary
#5865A1
accent
#49B530
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CEC187

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

Preview Lab → · Contrast checker → · Palette generator →

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