#CEC940#CEC940

#CEC940 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.6% C 0.153 H 107.3°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#CEC940
RGBrgb(206, 201, 64)
HSLhsl(58, 59%, 53%)
HSVhsv(58, 69%, 81%)
CMYKcmyk(0%, 2.4%, 68.9%, 19.2%)
CIE-LABlab(79.19, -14.19, 65.58)
CIE-LCHlch(79.19, 67.09, 102.21°)
OKLaboklab(81.58% -0.0455 0.1462)
OKLCHoklch(81.58% 0.153 107.3)
XYZxyz(47.2674, 55.2668, 13.0272)
Luminance0.5526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC940 #4045CE
analogous
#CE8240 #CEC940 #8CCE40
triadic
#CEC940 #40CEC9 #C940CE
tetradic
#CEC940 #40CE82 #4045CE #CE408C
square
#CEC940 #40CE82 #4045CE #CE408C
split-complementary
#CEC940 #408CCE #8240CE
monochromatic
#75721E #A6A22B #CEC940 #DAD771 #E7E5A1

Accessibility & contrast

On white

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

On black

12.05
#CEC940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC940
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC940#FFFFFF#000000##000000
##CEC9401.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC12A
Deuteranopia (green-blind)
#DCC749
Tritanopia (blue-blind)
#DDBCAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec940;
/* rgb */ color: rgb(206, 201, 64);
/* oklch */ color: oklch(81.6% 0.153 107.3);
Tailwind
colors: {
  custom: {
    50: '#e0d97d',
    500: '#cec940',
    950: '#000000',
  },
}
SCSS
$custom: #cec940;
$custom-light: #e0d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec940",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 57.887,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81577,
    "c": 0.15306,
    "h": 107.3
  },
  "luminance": 0.55265
}

Semantic roles & 50–950 ramp

primary
#CEC940
secondary
#34377E
accent
#4BE245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC940

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

Preview Lab → · Contrast checker → · Palette generator →

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