#CEC54A#CEC54A

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

Color values

HEX#CEC54A
RGBrgb(206, 197, 74)
HSLhsl(56, 57%, 55%)
HSVhsv(56, 64%, 81%)
CMYKcmyk(0%, 4.4%, 64.1%, 19.2%)
CIE-LABlab(78.20, -11.60, 60.62)
CIE-LCHlch(78.20, 61.72, 100.84°)
OKLaboklab(80.81% -0.0371 0.1373)
OKLCHoklch(80.81% 0.142 105.1)
XYZxyz(46.6576, 53.5504, 14.3558)
Luminance0.5355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC54A #4A53CE
analogous
#CE834A #CEC54A #95CE4A
triadic
#CEC54A #4ACEC5 #C54ACE
tetradic
#CEC54A #4ACE83 #4A53CE #CE4A95
square
#CEC54A #4ACE83 #4A53CE #CE4A95
split-complementary
#CEC54A #4A95CE #834ACE
monochromatic
#7C7622 #ACA42F #CEC54A #DBD47A #E8E4AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC54A#FFFFFF#000000##000000
##CEC54A1.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)
#D5BE3A
Deuteranopia (green-blind)
#D9C451
Tritanopia (blue-blind)
#DDB8AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec54a;
/* rgb */ color: rgb(206, 197, 74);
/* oklch */ color: oklch(80.8% 0.142 105.1);
Tailwind
colors: {
  custom: {
    50: '#e0d682',
    500: '#cec54a',
    950: '#000000',
  },
}
SCSS
$custom: #cec54a;
$custom-light: #e0d682;
$custom-dark: #000000;
JSON
{
  "hex": "#cec54a",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 74
  },
  "hsl": {
    "h": 55.909,
    "s": 57.391,
    "l": 54.902
  },
  "oklch": {
    "l": 0.80807,
    "c": 0.14222,
    "h": 105.1
  },
  "luminance": 0.53549
}

Semantic roles & 50–950 ramp

primary
#CEC54A
secondary
#383D84
accent
#52E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC54A

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

Preview Lab → · Contrast checker → · Palette generator →

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