#CEC04D#CEC04D

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

Color values

HEX#CEC04D
RGBrgb(206, 192, 77)
HSLhsl(53, 57%, 55%)
HSVhsv(53, 63%, 81%)
CMYKcmyk(0%, 6.8%, 62.6%, 19.2%)
CIE-LABlab(76.90, -8.86, 57.97)
CIE-LCHlch(76.90, 58.64, 98.69°)
OKLaboklab(79.78% -0.029 0.1321)
OKLCHoklch(79.78% 0.135 102.4)
XYZxyz(45.6445, 51.3587, 14.5286)
Luminance0.5136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC04D #4D5BCE
analogous
#CE7F4D #CEC04D #9CCE4D
triadic
#CEC04D #4DCEC0 #C04DCE
tetradic
#CEC04D #4DCE7F #4D5BCE #CE4D9C
square
#CEC04D #4DCE7F #4D5BCE #CE4D9C
split-complementary
#CEC04D #4D9CCE #7F4DCE
monochromatic
#7E7423 #AEA030 #CEC04D #DBD17D #E8E2AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC04D#FFFFFF#000000##000000
##CEC04D1.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)
#D0BA3F
Deuteranopia (green-blind)
#D5C153
Tritanopia (blue-blind)
#DDB3A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec04d;
/* rgb */ color: rgb(206, 192, 77);
/* oklch */ color: oklch(79.8% 0.135 102.4);
Tailwind
colors: {
  custom: {
    50: '#e0d284',
    500: '#cec04d',
    950: '#000000',
  },
}
SCSS
$custom: #cec04d;
$custom-light: #e0d284;
$custom-dark: #000000;
JSON
{
  "hex": "#cec04d",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 53.488,
    "s": 56.828,
    "l": 55.49
  },
  "oklch": {
    "l": 0.79779,
    "c": 0.13527,
    "h": 102.4
  },
  "luminance": 0.51357
}

Semantic roles & 50–950 ramp

primary
#CEC04D
secondary
#3A4286
accent
#58E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC04D

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

Preview Lab → · Contrast checker → · Palette generator →

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