#CEC22D#CEC22D

#CEC22D is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.0% C 0.157 H 104.6°. Best body text is #000000 at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#CEC22D
RGBrgb(206, 194, 45)
HSLhsl(56, 64%, 49%)
HSVhsv(56, 78%, 81%)
CMYKcmyk(0%, 5.8%, 78.2%, 19.2%)
CIE-LABlab(77.22, -11.47, 70.14)
CIE-LCHlch(77.22, 71.07, 99.29°)
OKLaboklab(79.97% -0.0396 0.1524)
OKLCHoklch(79.97% 0.157 104.6)
XYZxyz(45.2211, 51.8967, 10.1172)
Luminance0.5190 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC22D #2D39CE
analogous
#CE722D #CEC22D #8ACE2D
triadic
#CEC22D #2DCEC2 #C22DCE
tetradic
#CEC22D #2DCE72 #2D39CE #CE2D8A
square
#CEC22D #2DCE72 #2D39CE #CE2D8A
split-complementary
#CEC22D #2D8ACE #722DCE
monochromatic
#6A6317 #9C9322 #CEC22D #DCD25D #E7E08F

Accessibility & contrast

On white

1.85
#CEC22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.38
#CEC22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC22D
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC22D#FFFFFF#000000##000000
##CEC22D1.001.8511.3811.38
#FFFFFF1.851.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BB00
Deuteranopia (green-blind)
#D8C239
Tritanopia (blue-blind)
#DEB4A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec22d;
/* rgb */ color: rgb(206, 194, 45);
/* oklch */ color: oklch(80.0% 0.157 104.6);
Tailwind
colors: {
  custom: {
    50: '#e1d473',
    500: '#cec22d',
    950: '#000000',
  },
}
SCSS
$custom: #cec22d;
$custom-light: #e1d473;
$custom-dark: #000000;
JSON
{
  "hex": "#cec22d",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 45
  },
  "hsl": {
    "h": 55.528,
    "s": 64.143,
    "l": 49.216
  },
  "oklch": {
    "l": 0.79969,
    "c": 0.15745,
    "h": 104.6
  },
  "luminance": 0.51895
}

Semantic roles & 50–950 ramp

primary
#CEC22D
secondary
#2C3173
accent
#4DE741
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CEC22D

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

Preview Lab → · Contrast checker → · Palette generator →

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