#CEC55C#CEC55C

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

Color values

HEX#CEC55C
RGBrgb(206, 197, 92)
HSLhsl(55, 54%, 58%)
HSVhsv(55, 55%, 81%)
CMYKcmyk(0%, 4.4%, 55.3%, 19.2%)
CIE-LABlab(78.36, -10.36, 52.89)
CIE-LCHlch(78.36, 53.89, 101.08°)
OKLaboklab(80.99% -0.0316 0.1232)
OKLCHoklch(80.99% 0.127 104.4)
XYZxyz(47.3531, 53.8286, 18.0187)
Luminance0.5383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC55C #5C65CE
analogous
#CE8C5C #CEC55C #9ECE5C
triadic
#CEC55C #5CCEC5 #C55CCE
tetradic
#CEC55C #5CCE8C #5C65CE #CE5C9E
square
#CEC55C #5CCE8C #5C65CE #CE5C9E
split-complementary
#CEC55C #5C9ECE #8C5CCE
monochromatic
#878029 #B6AC37 #CEC55C #DCD68B #EAE6BA

Accessibility & contrast

On white

1.78
#CEC55C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.77
#CEC55C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC55C
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC55C#FFFFFF#000000##000000
##CEC55C1.001.7811.7711.77
#FFFFFF1.781.0021.0021.00
#00000011.7721.001.001.00
##00000011.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec55c;
/* rgb */ color: rgb(206, 197, 92);
/* oklch */ color: oklch(81.0% 0.127 104.4);
Tailwind
colors: {
  custom: {
    50: '#dfd68d',
    500: '#cec55c',
    950: '#000000',
  },
}
SCSS
$custom: #cec55c;
$custom-light: #dfd68d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec55c",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 92
  },
  "hsl": {
    "h": 55.263,
    "s": 53.774,
    "l": 58.431
  },
  "oklch": {
    "l": 0.80989,
    "c": 0.12718,
    "h": 104.4
  },
  "luminance": 0.53827
}

Semantic roles & 50–950 ramp

primary
#CEC55C
secondary
#40468E
accent
#56DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC55C

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

Preview Lab → · Contrast checker → · Palette generator →

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