#CEC542#CEC542

#CEC542 is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.7% C 0.148 H 105.4°. Best body text is #000000 at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#CEC542
RGBrgb(206, 197, 66)
HSLhsl(56, 59%, 53%)
HSVhsv(56, 68%, 81%)
CMYKcmyk(0%, 4.4%, 68%, 19.2%)
CIE-LABlab(78.14, -12.06, 63.76)
CIE-LCHlch(78.14, 64.89, 100.71°)
OKLaboklab(80.74% -0.0393 0.1427)
OKLCHoklch(80.74% 0.148 105.4)
XYZxyz(46.4050, 53.4494, 13.0256)
Luminance0.5345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC542 #424BCE
analogous
#CE7F42 #CEC542 #91CE42
triadic
#CEC542 #42CEC5 #C542CE
tetradic
#CEC542 #42CE7F #424BCE #CE4291
square
#CEC542 #42CE7F #424BCE #CE4291
split-complementary
#CEC542 #4291CE #7F42CE
monochromatic
#77711F #A79F2B #CEC542 #DBD473 #E7E3A3

Accessibility & contrast

On white

1.80
#CEC542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.69
#CEC542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC542
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC542#FFFFFF#000000##000000
##CEC5421.001.8011.6911.69
#FFFFFF1.801.0021.0021.00
#00000011.6921.001.001.00
##00000011.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2F
Deuteranopia (green-blind)
#D9C44B
Tritanopia (blue-blind)
#DDB8AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec542;
/* rgb */ color: rgb(206, 197, 66);
/* oklch */ color: oklch(80.7% 0.148 105.4);
Tailwind
colors: {
  custom: {
    50: '#e0d67e',
    500: '#cec542',
    950: '#000000',
  },
}
SCSS
$custom: #cec542;
$custom-light: #e0d67e;
$custom-dark: #000000;
JSON
{
  "hex": "#cec542",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 56.143,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.80741,
    "c": 0.14796,
    "h": 105.4
  },
  "luminance": 0.53448
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEC542

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

Preview Lab → · Contrast checker → · Palette generator →

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