#CEC55B#CEC55B

#CEC55B is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.0% C 0.128 H 104.4°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#CEC55B
RGBrgb(206, 197, 91)
HSLhsl(55, 54%, 58%)
HSVhsv(55, 56%, 81%)
CMYKcmyk(0%, 4.4%, 55.8%, 19.2%)
CIE-LABlab(78.35, -10.43, 53.34)
CIE-LCHlch(78.35, 54.35, 101.07°)
OKLaboklab(80.98% -0.0319 0.1241)
OKLCHoklch(80.98% 0.128 104.4)
XYZxyz(47.3097, 53.8112, 17.7900)
Luminance0.5381 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC55B #5B64CE
analogous
#CE8B5B #CEC55B #9ECE5B
triadic
#CEC55B #5BCEC5 #C55BCE
tetradic
#CEC55B #5BCE8B #5B64CE #CE5B9E
square
#CEC55B #5BCE8B #5B64CE #CE5B9E
split-complementary
#CEC55B #5B9ECE #8B5BCE
monochromatic
#867F28 #B6AC36 #CEC55B #DCD68A #EAE6B9

Accessibility & contrast

On white

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

On black

11.76
#CEC55B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC55B
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC55B#FFFFFF#000000##000000
##CEC55B1.001.7911.7611.76
#FFFFFF1.791.0021.0021.00
#00000011.7621.001.001.00
##00000011.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BF50
Deuteranopia (green-blind)
#D8C460
Tritanopia (blue-blind)
#DCB9AE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cec55b;
/* rgb */ color: rgb(206, 197, 91);
/* oklch */ color: oklch(81.0% 0.128 104.4);
Tailwind
colors: {
  custom: {
    50: '#dfd68d',
    500: '#cec55b',
    950: '#000000',
  },
}
SCSS
$custom: #cec55b;
$custom-light: #dfd68d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec55b",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 91
  },
  "hsl": {
    "h": 55.304,
    "s": 53.991,
    "l": 58.235
  },
  "oklch": {
    "l": 0.80977,
    "c": 0.12809,
    "h": 104.4
  },
  "luminance": 0.5381
}

Semantic roles & 50–950 ramp

primary
#CEC55B
secondary
#40468D
accent
#56DD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC55B

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

Preview Lab → · Contrast checker → · Palette generator →

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