#CEC949#CEC949

#CEC949 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.6% C 0.147 H 107.1°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#CEC949
RGBrgb(206, 201, 73)
HSLhsl(58, 58%, 55%)
HSVhsv(58, 65%, 81%)
CMYKcmyk(0%, 2.4%, 64.6%, 19.2%)
CIE-LABlab(79.26, -13.69, 62.14)
CIE-LCHlch(79.26, 63.63, 102.42°)
OKLaboklab(81.65% -0.0431 0.1404)
OKLCHoklch(81.65% 0.147 107.1)
XYZxyz(47.5445, 55.3777, 14.4865)
Luminance0.5538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC949 #494ECE
analogous
#CE8649 #CEC949 #91CE49
triadic
#CEC949 #49CEC9 #C949CE
tetradic
#CEC949 #49CE86 #494ECE #CE4991
square
#CEC949 #49CE86 #494ECE #CE4991
split-complementary
#CEC949 #4991CE #8649CE
monochromatic
#7B7821 #ACA72E #CEC949 #DBD779 #E8E6A9

Accessibility & contrast

On white

1.74
#CEC949 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#CEC949 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC949
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC949#FFFFFF#000000##000000
##CEC9491.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C238
Deuteranopia (green-blind)
#DCC751
Tritanopia (blue-blind)
#DCBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec949;
/* rgb */ color: rgb(206, 201, 73);
/* oklch */ color: oklch(81.6% 0.147 107.1);
Tailwind
colors: {
  custom: {
    50: '#e0d982',
    500: '#cec949',
    950: '#000000',
  },
}
SCSS
$custom: #cec949;
$custom-light: #e0d982;
$custom-dark: #000000;
JSON
{
  "hex": "#cec949",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 73
  },
  "hsl": {
    "h": 57.744,
    "s": 57.576,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81648,
    "c": 0.14683,
    "h": 107.1
  },
  "luminance": 0.55376
}

Semantic roles & 50–950 ramp

primary
#CEC949
secondary
#383B83
accent
#4DE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC949

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

Preview Lab → · Contrast checker → · Palette generator →

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