#CEC042#CEC042

#CEC042 is a light, vivid yellow. Relative luminance 0.512; OKLCH L 79.7% C 0.143 H 102.9°. Best body text is #000000 at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#CEC042
RGBrgb(206, 192, 66)
HSLhsl(54, 59%, 53%)
HSVhsv(54, 68%, 81%)
CMYKcmyk(0%, 6.8%, 68%, 19.2%)
CIE-LABlab(76.81, -9.51, 62.42)
CIE-LCHlch(76.81, 63.14, 98.67°)
OKLaboklab(79.68% -0.0321 0.1398)
OKLCHoklch(79.68% 0.143 102.9)
XYZxyz(45.2885, 51.2163, 12.6534)
Luminance0.5121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC042 #4250CE
analogous
#CE7A42 #CEC042 #96CE42
triadic
#CEC042 #42CEC0 #C042CE
tetradic
#CEC042 #42CE7A #4250CE #CE4296
square
#CEC042 #42CE7A #4250CE #CE4296
split-complementary
#CEC042 #4296CE #7A42CE
monochromatic
#776E1F #A79B2B #CEC042 #DBD073 #E7E0A3

Accessibility & contrast

On white

1.87
#CEC042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.24
#CEC042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC042
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC042#FFFFFF#000000##000000
##CEC0421.001.8711.2411.24
#FFFFFF1.871.0021.0021.00
#00000011.2421.001.001.00
##00000011.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#DDB3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec042;
/* rgb */ color: rgb(206, 192, 66);
/* oklch */ color: oklch(79.7% 0.143 102.9);
Tailwind
colors: {
  custom: {
    50: '#e0d27d',
    500: '#cec042',
    950: '#000000',
  },
}
SCSS
$custom: #cec042;
$custom-light: #e0d27d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec042",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 54,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.79683,
    "c": 0.14345,
    "h": 102.9
  },
  "luminance": 0.51214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEC042

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

Preview Lab → · Contrast checker → · Palette generator →

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