#CECC42#CECC42

#CECC42 is a very light, vivid yellow. Relative luminance 0.567; OKLCH L 82.2% C 0.155 H 108.5°. Best body text is #000000 at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#CECC42
RGBrgb(206, 204, 66)
HSLhsl(59, 59%, 53%)
HSVhsv(59, 68%, 81%)
CMYKcmyk(0%, 1%, 68%, 19.2%)
CIE-LABlab(80.01, -15.59, 65.64)
CIE-LCHlch(80.01, 67.47, 103.36°)
OKLaboklab(82.23% -0.0492 0.1466)
OKLCHoklch(82.23% 0.155 108.5)
XYZxyz(48.0315, 56.7024, 13.5677)
Luminance0.5670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CECC42 #4244CE
analogous
#CE8642 #CECC42 #8ACE42
triadic
#CECC42 #42CECC #CC42CE
tetradic
#CECC42 #42CE86 #4244CE #CE428A
square
#CECC42 #42CE86 #4244CE #CE428A
split-complementary
#CECC42 #428ACE #8642CE
monochromatic
#77761F #A7A62B #CECC42 #DBD973 #E7E6A3

Accessibility & contrast

On white

1.70
#CECC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.34
#CECC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CECC42
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CECC42#FFFFFF#000000##000000
##CECC421.001.7012.3412.34
#FFFFFF1.701.0021.0021.00
#00000012.3421.001.001.00
##00000012.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC42D
Deuteranopia (green-blind)
#DEC94C
Tritanopia (blue-blind)
#DCBFB1
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cecc42;
/* rgb */ color: rgb(206, 204, 66);
/* oklch */ color: oklch(82.2% 0.155 108.5);
Tailwind
colors: {
  custom: {
    50: '#e0db7e',
    500: '#cecc42',
    950: '#000000',
  },
}
SCSS
$custom: #cecc42;
$custom-light: #e0db7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cecc42",
  "rgb": {
    "r": 206,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 59.143,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.82233,
    "c": 0.15465,
    "h": 108.5
  },
  "luminance": 0.56701
}

Semantic roles & 50–950 ramp

primary
#CECC42
secondary
#35367F
accent
#48E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CECC42

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

Preview Lab → · Contrast checker → · Palette generator →

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