#CEC157#CEC157

#CEC157 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.1% C 0.128 H 102.4°. Best body text is #000000 at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#CEC157
RGBrgb(206, 193, 87)
HSLhsl(53, 55%, 57%)
HSVhsv(53, 58%, 81%)
CMYKcmyk(0%, 6.3%, 57.8%, 19.2%)
CIE-LABlab(77.25, -8.69, 53.92)
CIE-LCHlch(77.25, 54.62, 99.15°)
OKLaboklab(80.09% -0.0274 0.1248)
OKLCHoklch(80.09% 0.128 102.4)
XYZxyz(46.2455, 51.9516, 16.6066)
Luminance0.5195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC157 #5764CE
analogous
#CE8557 #CEC157 #A0CE57
triadic
#CEC157 #57CEC1 #C157CE
tetradic
#CEC157 #57CE85 #5764CE #CE57A0
square
#CEC157 #57CE85 #5764CE #CE57A0
split-complementary
#CEC157 #57A0CE #8557CE
monochromatic
#847A27 #B3A634 #CEC157 #DCD286 #EAE4B6

Accessibility & contrast

On white

1.84
#CEC157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.39
#CEC157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC157
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC157#FFFFFF#000000##000000
##CEC1571.001.8411.3911.39
#FFFFFF1.841.0021.0021.00
#00000011.3921.001.001.00
##00000011.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB4C
Deuteranopia (green-blind)
#D5C15C
Tritanopia (blue-blind)
#DCB5AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec157;
/* rgb */ color: rgb(206, 193, 87);
/* oklch */ color: oklch(80.1% 0.128 102.4);
Tailwind
colors: {
  custom: {
    50: '#e0d38a',
    500: '#cec157',
    950: '#000000',
  },
}
SCSS
$custom: #cec157;
$custom-light: #e0d38a;
$custom-dark: #000000;
JSON
{
  "hex": "#cec157",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 87
  },
  "hsl": {
    "h": 53.445,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80091,
    "c": 0.12779,
    "h": 102.4
  },
  "luminance": 0.5195
}

Semantic roles & 50–950 ramp

primary
#CEC157
secondary
#3E468B
accent
#5ADE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC157

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

Preview Lab → · Contrast checker → · Palette generator →

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