#CECB31#CECB31

#CECB31 is a light, vivid yellow. Relative luminance 0.561; OKLCH L 81.9% C 0.164 H 108.4°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#CECB31
RGBrgb(206, 203, 49)
HSLhsl(59, 62%, 50%)
HSVhsv(59, 76%, 81%)
CMYKcmyk(0%, 1.5%, 76.2%, 19.2%)
CIE-LABlab(79.65, -15.86, 71.11)
CIE-LCHlch(79.65, 72.86, 102.57°)
OKLaboklab(81.91% -0.0515 0.1552)
OKLCHoklch(81.91% 0.164 108.4)
XYZxyz(47.3658, 56.0570, 11.2302)
Luminance0.5605 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CECB31 #3134CE
analogous
#CE7D31 #CECB31 #82CE31
triadic
#CECB31 #31CECB #CB31CE
tetradic
#CECB31 #31CE7D #3134CE #CE3182
square
#CECB31 #31CE7D #3134CE #CE3182
split-complementary
#CECB31 #3182CE #7D31CE
monochromatic
#6B6A19 #9D9A25 #CECB31 #DAD762 #E6E494

Accessibility & contrast

On white

1.72
#CECB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#CECB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CECB31
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CECB31#FFFFFF#000000##000000
##CECB311.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC304
Deuteranopia (green-blind)
#DEC83E
Tritanopia (blue-blind)
#DDBEAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cecb31;
/* rgb */ color: rgb(206, 203, 49);
/* oklch */ color: oklch(81.9% 0.164 108.4);
Tailwind
colors: {
  custom: {
    50: '#e1da76',
    500: '#cecb31',
    950: '#000000',
  },
}
SCSS
$custom: #cecb31;
$custom-light: #e1da76;
$custom-dark: #000000;
JSON
{
  "hex": "#cecb31",
  "rgb": {
    "r": 206,
    "g": 203,
    "b": 49
  },
  "hsl": {
    "h": 58.854,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.8191,
    "c": 0.16355,
    "h": 108.4
  },
  "luminance": 0.56055
}

Semantic roles & 50–950 ramp

primary
#CECB31
secondary
#2E3075
accent
#46E543
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CECB31

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

Preview Lab → · Contrast checker → · Palette generator →

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