#CECC31#CECC31

#CECC31 is a very light, vivid yellow. Relative luminance 0.565; OKLCH L 82.1% C 0.164 H 108.8°. Best body text is #000000 at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#CECC31
RGBrgb(206, 204, 49)
HSLhsl(59, 62%, 50%)
HSVhsv(59, 76%, 81%)
CMYKcmyk(0%, 1%, 76.2%, 19.2%)
CIE-LABlab(79.92, -16.36, 71.36)
CIE-LCHlch(79.92, 73.21, 102.91°)
OKLaboklab(82.13% -0.0529 0.1557)
OKLCHoklch(82.13% 0.164 108.8)
XYZxyz(47.6027, 56.5308, 11.3092)
Luminance0.5653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CECC31 #3133CE
analogous
#CE7E31 #CECC31 #81CE31
triadic
#CECC31 #31CECC #CC31CE
tetradic
#CECC31 #31CE7E #3133CE #CE3181
square
#CECC31 #31CE7E #3133CE #CE3181
split-complementary
#CECC31 #3181CE #7E31CE
monochromatic
#6B6A19 #9D9B25 #CECC31 #DAD862 #E6E494

Accessibility & contrast

On white

1.71
#CECC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.31
#CECC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CECC31
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CECC31#FFFFFF#000000##000000
##CECC311.001.7112.3112.31
#FFFFFF1.711.0021.0021.00
#00000012.3121.001.001.00
##00000012.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC303
Deuteranopia (green-blind)
#DFC83E
Tritanopia (blue-blind)
#DDBFAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cecc31;
/* rgb */ color: rgb(206, 204, 49);
/* oklch */ color: oklch(82.1% 0.164 108.8);
Tailwind
colors: {
  custom: {
    50: '#e1db76',
    500: '#cecc31',
    950: '#000000',
  },
}
SCSS
$custom: #cecc31;
$custom-light: #e1db76;
$custom-dark: #000000;
JSON
{
  "hex": "#cecc31",
  "rgb": {
    "r": 206,
    "g": 204,
    "b": 49
  },
  "hsl": {
    "h": 59.236,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.82125,
    "c": 0.16448,
    "h": 108.8
  },
  "luminance": 0.56529
}

Semantic roles & 50–950 ramp

primary
#CECC31
secondary
#2E2F75
accent
#45E543
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CECC31

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

Preview Lab → · Contrast checker → · Palette generator →

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