#CEC52D#CEC52D

#CEC52D is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.6% C 0.160 H 105.9°. Best body text is #000000 at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#CEC52D
RGBrgb(206, 197, 45)
HSLhsl(57, 64%, 49%)
HSVhsv(57, 78%, 81%)
CMYKcmyk(0%, 4.4%, 78.2%, 19.2%)
CIE-LABlab(78.02, -12.99, 70.85)
CIE-LCHlch(78.02, 72.03, 100.39°)
OKLaboklab(80.61% -0.0438 0.1539)
OKLCHoklch(80.61% 0.16 105.9)
XYZxyz(45.8955, 53.2455, 10.3420)
Luminance0.5324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC52D #2D36CE
analogous
#CE752D #CEC52D #87CE2D
triadic
#CEC52D #2DCEC5 #C52DCE
tetradic
#CEC52D #2DCE75 #2D36CE #CE2D87
square
#CEC52D #2DCE75 #2D36CE #CE2D87
split-complementary
#CEC52D #2D87CE #752DCE
monochromatic
#6A6517 #9C9522 #CEC52D #DCD45D #E7E28F

Accessibility & contrast

On white

1.80
#CEC52D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.65
#CEC52D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC52D
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC52D#FFFFFF#000000##000000
##CEC52D1.001.8011.6511.65
#FFFFFF1.801.0021.0021.00
#00000011.6521.001.001.00
##00000011.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BE00
Deuteranopia (green-blind)
#DAC43A
Tritanopia (blue-blind)
#DEB7A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec52d;
/* rgb */ color: rgb(206, 197, 45);
/* oklch */ color: oklch(80.6% 0.160 105.9);
Tailwind
colors: {
  custom: {
    50: '#e1d673',
    500: '#cec52d',
    950: '#000000',
  },
}
SCSS
$custom: #cec52d;
$custom-light: #e1d673;
$custom-dark: #000000;
JSON
{
  "hex": "#cec52d",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 45
  },
  "hsl": {
    "h": 56.646,
    "s": 64.143,
    "l": 49.216
  },
  "oklch": {
    "l": 0.80607,
    "c": 0.16004,
    "h": 105.9
  },
  "luminance": 0.53244
}

Semantic roles & 50–950 ramp

primary
#CEC52D
secondary
#2C3073
accent
#4AE741
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CEC52D

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

Preview Lab → · Contrast checker → · Palette generator →

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