#CEC04F#CEC04F

#CEC04F is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.8% C 0.134 H 102.3°. Best body text is #000000 at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#CEC04F
RGBrgb(206, 192, 79)
HSLhsl(53, 56%, 56%)
HSVhsv(53, 62%, 81%)
CMYKcmyk(0%, 6.8%, 61.7%, 19.2%)
CIE-LABlab(76.91, -8.73, 57.12)
CIE-LCHlch(76.91, 57.78, 98.69°)
OKLaboklab(79.8% -0.0284 0.1306)
OKLCHoklch(79.8% 0.134 102.3)
XYZxyz(45.7163, 51.3874, 14.9063)
Luminance0.5139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC04F #4F5DCE
analogous
#CE804F #CEC04F #9CCE4F
triadic
#CEC04F #4FCEC0 #C04FCE
tetradic
#CEC04F #4FCE80 #4F5DCE #CE4F9C
square
#CEC04F #4FCE80 #4F5DCE #CE4F9C
split-complementary
#CEC04F #4F9CCE #804FCE
monochromatic
#7F7523 #AFA131 #CEC04F #DBD17F #E9E2AF

Accessibility & contrast

On white

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

On black

11.28
#CEC04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC04F
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC04F#FFFFFF#000000##000000
##CEC04F1.001.8611.2811.28
#FFFFFF1.861.0021.0021.00
#00000011.2821.001.001.00
##00000011.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA42
Deuteranopia (green-blind)
#D5C155
Tritanopia (blue-blind)
#DDB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec04f;
/* rgb */ color: rgb(206, 192, 79);
/* oklch */ color: oklch(79.8% 0.134 102.3);
Tailwind
colors: {
  custom: {
    50: '#e0d285',
    500: '#cec04f',
    950: '#000000',
  },
}
SCSS
$custom: #cec04f;
$custom-light: #e0d285;
$custom-dark: #000000;
JSON
{
  "hex": "#cec04f",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 53.386,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.79798,
    "c": 0.13365,
    "h": 102.3
  },
  "luminance": 0.51386
}

Semantic roles & 50–950 ramp

primary
#CEC04F
secondary
#3A4387
accent
#59E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC04F

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

Preview Lab → · Contrast checker → · Palette generator →

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