#CEC857#CEC857

#CEC857 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.6% C 0.135 H 106.2°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#CEC857
RGBrgb(206, 200, 87)
HSLhsl(57, 55%, 57%)
HSVhsv(57, 58%, 81%)
CMYKcmyk(0%, 2.9%, 57.8%, 19.2%)
CIE-LABlab(79.11, -12.26, 56.01)
CIE-LCHlch(79.11, 57.33, 102.35°)
OKLaboklab(81.57% -0.0375 0.1293)
OKLCHoklch(81.57% 0.135 106.2)
XYZxyz(47.8297, 55.1200, 17.1347)
Luminance0.5512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC857 #575DCE
analogous
#CE8D57 #CEC857 #98CE57
triadic
#CEC857 #57CEC8 #C857CE
tetradic
#CEC857 #57CE8D #575DCE #CE5798
square
#CEC857 #57CE8D #575DCE #CE5798
split-complementary
#CEC857 #5798CE #8D57CE
monochromatic
#847F27 #B3AD34 #CEC857 #DCD886 #EAE7B6

Accessibility & contrast

On white

1.75
#CEC857 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.02
#CEC857 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC857
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC857#FFFFFF#000000##000000
##CEC8571.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C14B
Deuteranopia (green-blind)
#DAC65D
Tritanopia (blue-blind)
#DCBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec857;
/* rgb */ color: rgb(206, 200, 87);
/* oklch */ color: oklch(81.6% 0.135 106.2);
Tailwind
colors: {
  custom: {
    50: '#e0d88a',
    500: '#cec857',
    950: '#000000',
  },
}
SCSS
$custom: #cec857;
$custom-light: #e0d88a;
$custom-dark: #000000;
JSON
{
  "hex": "#cec857",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 87
  },
  "hsl": {
    "h": 56.975,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.81568,
    "c": 0.13463,
    "h": 106.2
  },
  "luminance": 0.55118
}

Semantic roles & 50–950 ramp

primary
#CEC857
secondary
#3E428B
accent
#51DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC857

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

Preview Lab → · Contrast checker → · Palette generator →

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