#CEC442#CEC442

#CEC442 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.5% C 0.147 H 104.9°. Best body text is #000000 at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#CEC442
RGBrgb(206, 196, 66)
HSLhsl(56, 59%, 53%)
HSVhsv(56, 68%, 81%)
CMYKcmyk(0%, 4.9%, 68%, 19.2%)
CIE-LABlab(77.87, -11.55, 63.49)
CIE-LCHlch(77.87, 64.54, 100.31°)
OKLaboklab(80.53% -0.0378 0.1421)
OKLCHoklch(80.53% 0.147 104.9)
XYZxyz(46.1787, 52.9967, 12.9501)
Luminance0.5300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC442 #424CCE
analogous
#CE7E42 #CEC442 #92CE42
triadic
#CEC442 #42CEC4 #C442CE
tetradic
#CEC442 #42CE7E #424CCE #CE4292
square
#CEC442 #42CE7E #424CCE #CE4292
split-complementary
#CEC442 #4292CE #7E42CE
monochromatic
#77711F #A79F2B #CEC442 #DBD373 #E7E2A3

Accessibility & contrast

On white

1.81
#CEC442 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.60
#CEC442 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC442
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC442#FFFFFF#000000##000000
##CEC4421.001.8111.6011.60
#FFFFFF1.811.0021.0021.00
#00000011.6021.001.001.00
##00000011.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2F
Deuteranopia (green-blind)
#D8C34A
Tritanopia (blue-blind)
#DDB7AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cec442;
/* rgb */ color: rgb(206, 196, 66);
/* oklch */ color: oklch(80.5% 0.147 104.9);
Tailwind
colors: {
  custom: {
    50: '#e0d57e',
    500: '#cec442',
    950: '#000000',
  },
}
SCSS
$custom: #cec442;
$custom-light: #e0d57e;
$custom-dark: #000000;
JSON
{
  "hex": "#cec442",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 66
  },
  "hsl": {
    "h": 55.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.80528,
    "c": 0.14704,
    "h": 104.9
  },
  "luminance": 0.52995
}

Semantic roles & 50–950 ramp

primary
#CEC442
secondary
#353A7F
accent
#51E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC442

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

Preview Lab → · Contrast checker → · Palette generator →

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