#CEC142#CEC142

#CEC142 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.9% C 0.144 H 103.4°. Best body text is #000000 at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#CEC142
RGBrgb(206, 193, 66)
HSLhsl(54, 59%, 53%)
HSVhsv(54, 68%, 81%)
CMYKcmyk(0%, 6.3%, 68%, 19.2%)
CIE-LABlab(77.08, -10.03, 62.69)
CIE-LCHlch(77.08, 63.48, 99.09°)
OKLaboklab(79.89% -0.0335 0.1404)
OKLCHoklch(79.89% 0.144 103.4)
XYZxyz(45.5088, 51.6569, 12.7268)
Luminance0.5165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC142 #424FCE
analogous
#CE7B42 #CEC142 #95CE42
triadic
#CEC142 #42CEC1 #C142CE
tetradic
#CEC142 #42CE7B #424FCE #CE4295
square
#CEC142 #42CE7B #424FCE #CE4295
split-complementary
#CEC142 #4295CE #7B42CE
monochromatic
#776F1F #A79C2B #CEC142 #DBD173 #E7E1A3

Accessibility & contrast

On white

1.85
#CEC142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.33
#CEC142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC142
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC142#FFFFFF#000000##000000
##CEC1421.001.8511.3311.33
#FFFFFF1.851.0021.0021.00
#00000011.3321.001.001.00
##00000011.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB30
Deuteranopia (green-blind)
#D6C14A
Tritanopia (blue-blind)
#DDB4A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec142;
/* rgb */ color: rgb(206, 193, 66);
/* oklch */ color: oklch(79.9% 0.144 103.4);
Tailwind
colors: {
  custom: {
    50: '#e0d37d',
    500: '#cec142',
    950: '#000000',
  },
}
SCSS
$custom: #cec142;
$custom-light: #e0d37d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec142",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 54.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.79894,
    "c": 0.14432,
    "h": 103.4
  },
  "luminance": 0.51655
}

Semantic roles & 50–950 ramp

primary
#CEC142
secondary
#353C7F
accent
#54E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC142

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

Preview Lab → · Contrast checker → · Palette generator →

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