#CEC342#CEC342

#CEC342 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.3% C 0.146 H 104.4°. Best body text is #000000 at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#CEC342
RGBrgb(206, 195, 66)
HSLhsl(55, 59%, 53%)
HSVhsv(55, 68%, 81%)
CMYKcmyk(0%, 5.3%, 68%, 19.2%)
CIE-LABlab(77.61, -11.05, 63.23)
CIE-LCHlch(77.61, 64.18, 99.91°)
OKLaboklab(80.32% -0.0364 0.1415)
OKLCHoklch(80.32% 0.146 104.4)
XYZxyz(45.9539, 52.5471, 12.8752)
Luminance0.5254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC342 #424DCE
analogous
#CE7D42 #CEC342 #93CE42
triadic
#CEC342 #42CEC3 #C342CE
tetradic
#CEC342 #42CE7D #424DCE #CE4293
square
#CEC342 #42CE7D #424DCE #CE4293
split-complementary
#CEC342 #4293CE #7D42CE
monochromatic
#77701F #A79E2B #CEC342 #DBD273 #E7E2A3

Accessibility & contrast

On white

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

On black

11.51
#CEC342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC342
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC342#FFFFFF#000000##000000
##CEC3421.001.8211.5111.51
#FFFFFF1.821.0021.0021.00
#00000011.5121.001.001.00
##00000011.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2F
Deuteranopia (green-blind)
#D8C24A
Tritanopia (blue-blind)
#DDB6A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cec342;
/* rgb */ color: rgb(206, 195, 66);
/* oklch */ color: oklch(80.3% 0.146 104.4);
Tailwind
colors: {
  custom: {
    50: '#e0d47e',
    500: '#cec342',
    950: '#000000',
  },
}
SCSS
$custom: #cec342;
$custom-light: #e0d47e;
$custom-dark: #000000;
JSON
{
  "hex": "#cec342",
  "rgb": {
    "r": 206,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 55.286,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.80317,
    "c": 0.14613,
    "h": 104.4
  },
  "luminance": 0.52545
}

Semantic roles & 50–950 ramp

primary
#CEC342
secondary
#353B7F
accent
#52E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC342

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

Preview Lab → · Contrast checker → · Palette generator →

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