#CEC04A#CEC04A

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

Color values

HEX#CEC04A
RGBrgb(206, 192, 74)
HSLhsl(54, 57%, 55%)
HSVhsv(54, 64%, 81%)
CMYKcmyk(0%, 6.8%, 64.1%, 19.2%)
CIE-LABlab(76.87, -9.05, 59.22)
CIE-LCHlch(76.87, 59.90, 98.69°)
OKLaboklab(79.75% -0.0299 0.1343)
OKLCHoklch(79.75% 0.138 102.5)
XYZxyz(45.5411, 51.3173, 13.9836)
Luminance0.5131 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC04A #4A58CE
analogous
#CE7E4A #CEC04A #9ACE4A
triadic
#CEC04A #4ACEC0 #C04ACE
tetradic
#CEC04A #4ACE7E #4A58CE #CE4A9A
square
#CEC04A #4ACE7E #4A58CE #CE4A9A
split-complementary
#CEC04A #4A9ACE #7E4ACE
monochromatic
#7C7222 #AC9F2F #CEC04A #DBD17A #E8E2AA

Accessibility & contrast

On white

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

On black

11.26
#CEC04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC04A
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC04A#FFFFFF#000000##000000
##CEC04A1.001.8611.2611.26
#FFFFFF1.861.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec04a;
/* rgb */ color: rgb(206, 192, 74);
/* oklch */ color: oklch(79.8% 0.138 102.5);
Tailwind
colors: {
  custom: {
    50: '#e0d282',
    500: '#cec04a',
    950: '#000000',
  },
}
SCSS
$custom: #cec04a;
$custom-light: #e0d282;
$custom-dark: #000000;
JSON
{
  "hex": "#cec04a",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 53.636,
    "s": 57.391,
    "l": 54.902
  },
  "oklch": {
    "l": 0.79751,
    "c": 0.13761,
    "h": 102.5
  },
  "luminance": 0.51315
}

Semantic roles & 50–950 ramp

primary
#CEC04A
secondary
#384084
accent
#57E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC04A

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

Preview Lab → · Contrast checker → · Palette generator →

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