#CEC54C#CEC54C

#CEC54C is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.8% C 0.141 H 105.1°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#CEC54C
RGBrgb(206, 197, 76)
HSLhsl(56, 57%, 55%)
HSVhsv(56, 63%, 81%)
CMYKcmyk(0%, 4.4%, 63.1%, 19.2%)
CIE-LABlab(78.21, -11.48, 59.80)
CIE-LCHlch(78.21, 60.89, 100.87°)
OKLaboklab(80.83% -0.0365 0.1359)
OKLCHoklch(80.83% 0.141 105.1)
XYZxyz(46.7261, 53.5778, 14.7163)
Luminance0.5358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC54C #4C55CE
analogous
#CE844C #CEC54C #96CE4C
triadic
#CEC54C #4CCEC5 #C54CCE
tetradic
#CEC54C #4CCE84 #4C55CE #CE4C96
square
#CEC54C #4CCE84 #4C55CE #CE4C96
split-complementary
#CEC54C #4C96CE #844CCE
monochromatic
#7D7722 #ADA52F #CEC54C #DBD57C #E8E4AC

Accessibility & contrast

On white

1.79
#CEC54C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#CEC54C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC54C
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC54C#FFFFFF#000000##000000
##CEC54C1.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE3D
Deuteranopia (green-blind)
#D9C453
Tritanopia (blue-blind)
#DCB8AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec54c;
/* rgb */ color: rgb(206, 197, 76);
/* oklch */ color: oklch(80.8% 0.141 105.1);
Tailwind
colors: {
  custom: {
    50: '#e0d684',
    500: '#cec54c',
    950: '#000000',
  },
}
SCSS
$custom: #cec54c;
$custom-light: #e0d684;
$custom-dark: #000000;
JSON
{
  "hex": "#cec54c",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 76
  },
  "hsl": {
    "h": 55.846,
    "s": 57.018,
    "l": 55.294
  },
  "oklch": {
    "l": 0.80825,
    "c": 0.14069,
    "h": 105.1
  },
  "luminance": 0.53576
}

Semantic roles & 50–950 ramp

primary
#CEC54C
secondary
#393E85
accent
#52E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC54C

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

Preview Lab → · Contrast checker → · Palette generator →

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