#CEC55F#CEC55F

#CEC55F is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.0% C 0.124 H 104.2°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#CEC55F
RGBrgb(206, 197, 95)
HSLhsl(55, 53%, 59%)
HSVhsv(55, 54%, 81%)
CMYKcmyk(0%, 4.4%, 53.9%, 19.2%)
CIE-LABlab(78.39, -10.12, 51.53)
CIE-LCHlch(78.39, 52.51, 101.11°)
OKLaboklab(81.02% -0.0306 0.1206)
OKLCHoklch(81.02% 0.124 104.2)
XYZxyz(47.4868, 53.8821, 18.7231)
Luminance0.5388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC55F #5F68CE
analogous
#CE8E5F #CEC55F #A0CE5F
triadic
#CEC55F #5FCEC5 #C55FCE
tetradic
#CEC55F #5FCE8E #5F68CE #CE5FA0
square
#CEC55F #5FCE8E #5F68CE #CE5FA0
split-complementary
#CEC55F #5FA0CE #8E5FCE
monochromatic
#89812A #B8AD38 #CEC55F #DCD68E #EBE7BD

Accessibility & contrast

On white

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

On black

11.78
#CEC55F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC55F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC55F#FFFFFF#000000##000000
##CEC55F1.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BF55
Deuteranopia (green-blind)
#D7C464
Tritanopia (blue-blind)
#DBBAAE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cec55f;
/* rgb */ color: rgb(206, 197, 95);
/* oklch */ color: oklch(81.0% 0.124 104.2);
Tailwind
colors: {
  custom: {
    50: '#dfd68f',
    500: '#cec55f',
    950: '#000000',
  },
}
SCSS
$custom: #cec55f;
$custom-light: #dfd68f;
$custom-dark: #000000;
JSON
{
  "hex": "#cec55f",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 95
  },
  "hsl": {
    "h": 55.135,
    "s": 53.11,
    "l": 59.02
  },
  "oklch": {
    "l": 0.81023,
    "c": 0.1244,
    "h": 104.2
  },
  "luminance": 0.53881
}

Semantic roles & 50–950 ramp

primary
#CEC55F
secondary
#42488F
accent
#57DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC55F

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

Preview Lab → · Contrast checker → · Palette generator →

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