#CEC42D#CEC42D

#CEC42D is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.4% C 0.159 H 105.5°. Best body text is #000000 at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#CEC42D
RGBrgb(206, 196, 45)
HSLhsl(56, 64%, 49%)
HSVhsv(56, 78%, 81%)
CMYKcmyk(0%, 4.9%, 78.2%, 19.2%)
CIE-LABlab(77.75, -12.49, 70.61)
CIE-LCHlch(77.75, 71.71, 100.03°)
OKLaboklab(80.39% -0.0424 0.1534)
OKLCHoklch(80.39% 0.159 105.5)
XYZxyz(45.6692, 52.7929, 10.2665)
Luminance0.5279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC42D #2D37CE
analogous
#CE742D #CEC42D #88CE2D
triadic
#CEC42D #2DCEC4 #C42DCE
tetradic
#CEC42D #2DCE74 #2D37CE #CE2D88
square
#CEC42D #2DCE74 #2D37CE #CE2D88
split-complementary
#CEC42D #2D88CE #742DCE
monochromatic
#6A6417 #9C9422 #CEC42D #DCD45D #E7E18F

Accessibility & contrast

On white

1.82
#CEC42D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.56
#CEC42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC42D
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC42D#FFFFFF#000000##000000
##CEC42D1.001.8211.5611.56
#FFFFFF1.821.0021.0021.00
#00000011.5621.001.001.00
##00000011.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BD00
Deuteranopia (green-blind)
#D9C33A
Tritanopia (blue-blind)
#DEB6A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cec42d;
/* rgb */ color: rgb(206, 196, 45);
/* oklch */ color: oklch(80.4% 0.159 105.5);
Tailwind
colors: {
  custom: {
    50: '#e1d573',
    500: '#cec42d',
    950: '#000000',
  },
}
SCSS
$custom: #cec42d;
$custom-light: #e1d573;
$custom-dark: #000000;
JSON
{
  "hex": "#cec42d",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 45
  },
  "hsl": {
    "h": 56.273,
    "s": 64.143,
    "l": 49.216
  },
  "oklch": {
    "l": 0.80394,
    "c": 0.15917,
    "h": 105.5
  },
  "luminance": 0.52791
}

Semantic roles & 50–950 ramp

primary
#CEC42D
secondary
#2C3073
accent
#4BE741
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CEC42D

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

Preview Lab → · Contrast checker → · Palette generator →

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