#CEC842#CEC842

#CEC842 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.4% C 0.151 H 106.8°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#CEC842
RGBrgb(206, 200, 66)
HSLhsl(57, 59%, 53%)
HSVhsv(57, 68%, 81%)
CMYKcmyk(0%, 2.9%, 68%, 19.2%)
CIE-LABlab(78.94, -13.58, 64.57)
CIE-LCHlch(78.94, 65.98, 101.88°)
OKLaboklab(81.38% -0.0435 0.1444)
OKLCHoklch(81.38% 0.151 106.8)
XYZxyz(47.0930, 54.8253, 13.2549)
Luminance0.5482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC842 #4248CE
analogous
#CE8242 #CEC842 #8ECE42
triadic
#CEC842 #42CEC8 #C842CE
tetradic
#CEC842 #42CE82 #4248CE #CE428E
square
#CEC842 #42CE82 #4248CE #CE428E
split-complementary
#CEC842 #428ECE #8242CE
monochromatic
#77731F #A7A22B #CEC842 #DBD673 #E7E4A3

Accessibility & contrast

On white

1.76
#CEC842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.96
#CEC842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC842
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC842#FFFFFF#000000##000000
##CEC8421.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12E
Deuteranopia (green-blind)
#DBC64B
Tritanopia (blue-blind)
#DDBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec842;
/* rgb */ color: rgb(206, 200, 66);
/* oklch */ color: oklch(81.4% 0.151 106.8);
Tailwind
colors: {
  custom: {
    50: '#e0d87e',
    500: '#cec842',
    950: '#000000',
  },
}
SCSS
$custom: #cec842;
$custom-light: #e0d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#cec842",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 57.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.81379,
    "c": 0.15079,
    "h": 106.8
  },
  "luminance": 0.54824
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEC842

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

Preview Lab → · Contrast checker → · Palette generator →

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