#CEC152#CEC152

#CEC152 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.0% C 0.132 H 102.7°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#CEC152
RGBrgb(206, 193, 82)
HSLhsl(54, 56%, 56%)
HSVhsv(54, 60%, 81%)
CMYKcmyk(0%, 6.3%, 60.2%, 19.2%)
CIE-LABlab(77.20, -9.04, 56.12)
CIE-LCHlch(77.20, 56.84, 99.16°)
OKLaboklab(80.04% -0.0289 0.1289)
OKLCHoklch(80.04% 0.132 102.7)
XYZxyz(46.0482, 51.8727, 15.5678)
Luminance0.5187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC152 #525FCE
analogous
#CE8352 #CEC152 #9DCE52
triadic
#CEC152 #52CEC1 #C152CE
tetradic
#CEC152 #52CE83 #525FCE #CE529D
square
#CEC152 #52CE83 #525FCE #CE529D
split-complementary
#CEC152 #529DCE #8352CE
monochromatic
#817725 #B1A332 #CEC152 #DCD282 #E9E3B1

Accessibility & contrast

On white

1.85
#CEC152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#CEC152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC152
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC152#FFFFFF#000000##000000
##CEC1521.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D5C158
Tritanopia (blue-blind)
#DCB5A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec152;
/* rgb */ color: rgb(206, 193, 82);
/* oklch */ color: oklch(80.0% 0.132 102.7);
Tailwind
colors: {
  custom: {
    50: '#e0d387',
    500: '#cec152',
    950: '#000000',
  },
}
SCSS
$custom: #cec152;
$custom-light: #e0d387;
$custom-dark: #000000;
JSON
{
  "hex": "#cec152",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 53.71,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.80038,
    "c": 0.13209,
    "h": 102.7
  },
  "luminance": 0.51871
}

Semantic roles & 50–950 ramp

primary
#CEC152
secondary
#3C4488
accent
#58DF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC152

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

Preview Lab → · Contrast checker → · Palette generator →

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