#CEC931#CEC931

#CEC931 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.5% C 0.162 H 107.5°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#CEC931
RGBrgb(206, 201, 49)
HSLhsl(58, 62%, 50%)
HSVhsv(58, 76%, 81%)
CMYKcmyk(0%, 2.4%, 76.2%, 19.2%)
CIE-LABlab(79.11, -14.86, 70.63)
CIE-LCHlch(79.11, 72.17, 101.88°)
OKLaboklab(81.48% -0.0487 0.1542)
OKLCHoklch(81.48% 0.162 107.5)
XYZxyz(46.8965, 55.1185, 11.0738)
Luminance0.5512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC931 #3136CE
analogous
#CE7A31 #CEC931 #85CE31
triadic
#CEC931 #31CEC9 #C931CE
tetradic
#CEC931 #31CE7A #3136CE #CE3185
square
#CEC931 #31CE7A #3136CE #CE3185
split-complementary
#CEC931 #3185CE #7A31CE
monochromatic
#6B6919 #9D9925 #CEC931 #DAD662 #E6E394

Accessibility & contrast

On white

1.75
#CEC931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.02
#CEC931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC931
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC931#FFFFFF#000000##000000
##CEC9311.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC106
Deuteranopia (green-blind)
#DDC63E
Tritanopia (blue-blind)
#DDBBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec931;
/* rgb */ color: rgb(206, 201, 49);
/* oklch */ color: oklch(81.5% 0.162 107.5);
Tailwind
colors: {
  custom: {
    50: '#e1d976',
    500: '#cec931',
    950: '#000000',
  },
}
SCSS
$custom: #cec931;
$custom-light: #e1d976;
$custom-dark: #000000;
JSON
{
  "hex": "#cec931",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 49
  },
  "hsl": {
    "h": 58.089,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.81482,
    "c": 0.16169,
    "h": 107.5
  },
  "luminance": 0.55117
}

Semantic roles & 50–950 ramp

primary
#CEC931
secondary
#2E3175
accent
#48E543
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CEC931

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

Preview Lab → · Contrast checker → · Palette generator →

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