#CEC54B#CEC54B

#CEC54B 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.71:1 contrast (WCAG AA passes).

Color values

HEX#CEC54B
RGBrgb(206, 197, 75)
HSLhsl(56, 57%, 55%)
HSVhsv(56, 64%, 81%)
CMYKcmyk(0%, 4.4%, 63.6%, 19.2%)
CIE-LABlab(78.21, -11.54, 60.21)
CIE-LCHlch(78.21, 61.31, 100.85°)
OKLaboklab(80.82% -0.0368 0.1366)
OKLCHoklch(80.82% 0.141 105.1)
XYZxyz(46.6916, 53.5640, 14.5346)
Luminance0.5356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC54B #4B54CE
analogous
#CE844B #CEC54B #95CE4B
triadic
#CEC54B #4BCEC5 #C54BCE
tetradic
#CEC54B #4BCE84 #4B54CE #CE4B95
square
#CEC54B #4BCE84 #4B54CE #CE4B95
split-complementary
#CEC54B #4B95CE #844BCE
monochromatic
#7D7622 #ADA42F #CEC54B #DBD57B #E8E4AB

Accessibility & contrast

On white

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

On black

11.71
#CEC54B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC54B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC54B#FFFFFF#000000##000000
##CEC54B1.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE3C
Deuteranopia (green-blind)
#D9C452
Tritanopia (blue-blind)
#DDB8AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec54b;
/* rgb */ color: rgb(206, 197, 75);
/* oklch */ color: oklch(80.8% 0.141 105.1);
Tailwind
colors: {
  custom: {
    50: '#e0d683',
    500: '#cec54b',
    950: '#000000',
  },
}
SCSS
$custom: #cec54b;
$custom-light: #e0d683;
$custom-dark: #000000;
JSON
{
  "hex": "#cec54b",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 75
  },
  "hsl": {
    "h": 55.878,
    "s": 57.205,
    "l": 55.098
  },
  "oklch": {
    "l": 0.80816,
    "c": 0.14146,
    "h": 105.1
  },
  "luminance": 0.53562
}

Semantic roles & 50–950 ramp

primary
#CEC54B
secondary
#393E84
accent
#52E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC54B

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

Preview Lab → · Contrast checker → · Palette generator →

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