#CEC54D#CEC54D

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

Color values

HEX#CEC54D
RGBrgb(206, 197, 77)
HSLhsl(56, 57%, 55%)
HSVhsv(56, 63%, 81%)
CMYKcmyk(0%, 4.4%, 62.6%, 19.2%)
CIE-LABlab(78.22, -11.42, 59.39)
CIE-LCHlch(78.22, 60.48, 100.88°)
OKLaboklab(80.83% -0.0363 0.1351)
OKLCHoklch(80.83% 0.14 105)
XYZxyz(46.7611, 53.5918, 14.9008)
Luminance0.5359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC54D #4D56CE
analogous
#CE844D #CEC54D #96CE4D
triadic
#CEC54D #4DCEC5 #C54DCE
tetradic
#CEC54D #4DCE84 #4D56CE #CE4D96
square
#CEC54D #4DCE84 #4D56CE #CE4D96
split-complementary
#CEC54D #4D96CE #844DCE
monochromatic
#7E7823 #AEA530 #CEC54D #DBD57D #E8E4AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC54D#FFFFFF#000000##000000
##CEC54D1.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)
#D5BE3E
Deuteranopia (green-blind)
#D9C454
Tritanopia (blue-blind)
#DCB9AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec54d;
/* rgb */ color: rgb(206, 197, 77);
/* oklch */ color: oklch(80.8% 0.140 105.0);
Tailwind
colors: {
  custom: {
    50: '#e0d684',
    500: '#cec54d',
    950: '#000000',
  },
}
SCSS
$custom: #cec54d;
$custom-light: #e0d684;
$custom-dark: #000000;
JSON
{
  "hex": "#cec54d",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 77
  },
  "hsl": {
    "h": 55.814,
    "s": 56.828,
    "l": 55.49
  },
  "oklch": {
    "l": 0.80834,
    "c": 0.13991,
    "h": 105
  },
  "luminance": 0.5359
}

Semantic roles & 50–950 ramp

primary
#CEC54D
secondary
#3A3F86
accent
#52E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC54D

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

Preview Lab → · Contrast checker → · Palette generator →

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