#CEC942#CEC942

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

Color values

HEX#CEC942
RGBrgb(206, 201, 66)
HSLhsl(58, 59%, 53%)
HSVhsv(58, 68%, 81%)
CMYKcmyk(0%, 2.4%, 68%, 19.2%)
CIE-LABlab(79.21, -14.08, 64.84)
CIE-LCHlch(79.21, 66.35, 102.25°)
OKLaboklab(81.59% -0.045 0.1449)
OKLCHoklch(81.59% 0.152 107.2)
XYZxyz(47.3254, 55.2900, 13.3323)
Luminance0.5529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC942 #4247CE
analogous
#CE8342 #CEC942 #8DCE42
triadic
#CEC942 #42CEC9 #C942CE
tetradic
#CEC942 #42CE83 #4247CE #CE428D
square
#CEC942 #42CE83 #4247CE #CE428D
split-complementary
#CEC942 #428DCE #8342CE
monochromatic
#77741F #A7A32B #CEC942 #DBD773 #E7E5A3

Accessibility & contrast

On white

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

On black

12.06
#CEC942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC942
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC942#FFFFFF#000000##000000
##CEC9421.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec942;
/* rgb */ color: rgb(206, 201, 66);
/* oklch */ color: oklch(81.6% 0.152 107.2);
Tailwind
colors: {
  custom: {
    50: '#e0d97e',
    500: '#cec942',
    950: '#000000',
  },
}
SCSS
$custom: #cec942;
$custom-light: #e0d97e;
$custom-dark: #000000;
JSON
{
  "hex": "#cec942",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 66
  },
  "hsl": {
    "h": 57.857,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.81592,
    "c": 0.15173,
    "h": 107.2
  },
  "luminance": 0.55288
}

Semantic roles & 50–950 ramp

primary
#CEC942
secondary
#35387F
accent
#4BE246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC942

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

Preview Lab → · Contrast checker → · Palette generator →

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