#CEC22F#CEC22F

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

Color values

HEX#CEC22F
RGBrgb(206, 194, 47)
HSLhsl(55, 63%, 50%)
HSVhsv(55, 77%, 81%)
CMYKcmyk(0%, 5.8%, 77.2%, 19.2%)
CIE-LABlab(77.23, -11.40, 69.54)
CIE-LCHlch(77.23, 70.46, 99.31°)
OKLaboklab(79.98% -0.0392 0.1515)
OKLCHoklch(79.98% 0.156 104.5)
XYZxyz(45.2605, 51.9125, 10.3248)
Luminance0.5191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC22F #2F3BCE
analogous
#CE732F #CEC22F #8ACE2F
triadic
#CEC22F #2FCEC2 #C22FCE
tetradic
#CEC22F #2FCE73 #2F3BCE #CE2F8A
square
#CEC22F #2FCE73 #2F3BCE #CE2F8A
split-complementary
#CEC22F #2F8ACE #732FCE
monochromatic
#6A6418 #9C9324 #CEC22F #DBD160 #E6E091

Accessibility & contrast

On white

1.84
#CEC22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC22F#FFFFFF#000000##000000
##CEC22F1.001.8411.3811.38
#FFFFFF1.841.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec22f;
/* rgb */ color: rgb(206, 194, 47);
/* oklch */ color: oklch(80.0% 0.156 104.5);
Tailwind
colors: {
  custom: {
    50: '#e1d474',
    500: '#cec22f',
    950: '#000000',
  },
}
SCSS
$custom: #cec22f;
$custom-light: #e1d474;
$custom-dark: #000000;
JSON
{
  "hex": "#cec22f",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 47
  },
  "hsl": {
    "h": 55.472,
    "s": 62.846,
    "l": 49.608
  },
  "oklch": {
    "l": 0.7998,
    "c": 0.15647,
    "h": 104.5
  },
  "luminance": 0.51911
}

Semantic roles & 50–950 ramp

primary
#CEC22F
secondary
#2D3274
accent
#4EE642
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CEC22F

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

Preview Lab → · Contrast checker → · Palette generator →

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