#CEC04B#CEC04B

#CEC04B is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.8% C 0.137 H 102.5°. Best body text is #000000 at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#CEC04B
RGBrgb(206, 192, 75)
HSLhsl(54, 57%, 55%)
HSVhsv(54, 64%, 81%)
CMYKcmyk(0%, 6.8%, 63.6%, 19.2%)
CIE-LABlab(76.88, -8.99, 58.80)
CIE-LCHlch(76.88, 59.49, 98.69°)
OKLaboklab(79.76% -0.0296 0.1336)
OKLCHoklch(79.76% 0.137 102.5)
XYZxyz(45.5750, 51.3309, 14.1624)
Luminance0.5133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC04B #4B59CE
analogous
#CE7F4B #CEC04B #9ACE4B
triadic
#CEC04B #4BCEC0 #C04BCE
tetradic
#CEC04B #4BCE7F #4B59CE #CE4B9A
square
#CEC04B #4BCE7F #4B59CE #CE4B9A
split-complementary
#CEC04B #4B9ACE #7F4BCE
monochromatic
#7D7322 #AD9F2F #CEC04B #DBD17B #E8E2AB

Accessibility & contrast

On white

1.86
#CEC04B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.27
#CEC04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC04B
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC04B#FFFFFF#000000##000000
##CEC04B1.001.8611.2711.27
#FFFFFF1.861.0021.0021.00
#00000011.2721.001.001.00
##00000011.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA3D
Deuteranopia (green-blind)
#D5C152
Tritanopia (blue-blind)
#DDB3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec04b;
/* rgb */ color: rgb(206, 192, 75);
/* oklch */ color: oklch(79.8% 0.137 102.5);
Tailwind
colors: {
  custom: {
    50: '#e0d283',
    500: '#cec04b',
    950: '#000000',
  },
}
SCSS
$custom: #cec04b;
$custom-light: #e0d283;
$custom-dark: #000000;
JSON
{
  "hex": "#cec04b",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 75
  },
  "hsl": {
    "h": 53.588,
    "s": 57.205,
    "l": 55.098
  },
  "oklch": {
    "l": 0.7976,
    "c": 0.13684,
    "h": 102.5
  },
  "luminance": 0.51329
}

Semantic roles & 50–950 ramp

primary
#CEC04B
secondary
#394184
accent
#58E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC04B

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

Preview Lab → · Contrast checker → · Palette generator →

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