#CEC04C#CEC04C

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

Color values

HEX#CEC04C
RGBrgb(206, 192, 76)
HSLhsl(54, 57%, 55%)
HSVhsv(54, 63%, 81%)
CMYKcmyk(0%, 6.8%, 63.1%, 19.2%)
CIE-LABlab(76.89, -8.93, 58.38)
CIE-LCHlch(76.89, 59.06, 98.69°)
OKLaboklab(79.77% -0.0293 0.1329)
OKLCHoklch(79.77% 0.136 102.4)
XYZxyz(45.6095, 51.3447, 14.3441)
Luminance0.5134 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC04C #4C5ACE
analogous
#CE7F4C #CEC04C #9BCE4C
triadic
#CEC04C #4CCEC0 #C04CCE
tetradic
#CEC04C #4CCE7F #4C5ACE #CE4C9B
square
#CEC04C #4CCE7F #4C5ACE #CE4C9B
split-complementary
#CEC04C #4C9BCE #7F4CCE
monochromatic
#7D7322 #ADA02F #CEC04C #DBD17C #E8E2AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC04C#FFFFFF#000000##000000
##CEC04C1.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)
#D0BA3E
Deuteranopia (green-blind)
#D5C152
Tritanopia (blue-blind)
#DDB3A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec04c;
/* rgb */ color: rgb(206, 192, 76);
/* oklch */ color: oklch(79.8% 0.136 102.4);
Tailwind
colors: {
  custom: {
    50: '#e0d283',
    500: '#cec04c',
    950: '#000000',
  },
}
SCSS
$custom: #cec04c;
$custom-light: #e0d283;
$custom-dark: #000000;
JSON
{
  "hex": "#cec04c",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 53.538,
    "s": 57.018,
    "l": 55.294
  },
  "oklch": {
    "l": 0.79769,
    "c": 0.13605,
    "h": 102.4
  },
  "luminance": 0.51343
}

Semantic roles & 50–950 ramp

primary
#CEC04C
secondary
#394185
accent
#58E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC04C

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

Preview Lab → · Contrast checker → · Palette generator →

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