#CECC51#CECC51

#CECC51 is a very light, vivid yellow. Relative luminance 0.569; OKLCH L 82.4% C 0.144 H 108.3°. Best body text is #000000 at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#CECC51
RGBrgb(206, 204, 81)
HSLhsl(59, 56%, 56%)
HSVhsv(59, 61%, 81%)
CMYKcmyk(0%, 1%, 60.7%, 19.2%)
CIE-LABlab(80.13, -14.69, 59.73)
CIE-LCHlch(80.13, 61.51, 103.82°)
OKLaboklab(82.36% -0.0451 0.1364)
OKLCHoklch(82.36% 0.144 108.3)
XYZxyz(48.5332, 56.9030, 16.2098)
Luminance0.5690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CECC51 #5153CE
analogous
#CE8E51 #CECC51 #92CE51
triadic
#CECC51 #51CECC #CC51CE
tetradic
#CECC51 #51CE8E #5153CE #CE5192
square
#CECC51 #51CE8E #5153CE #CE5192
split-complementary
#CECC51 #5192CE #8E51CE
monochromatic
#807F24 #B0AE32 #CECC51 #DBDA81 #E9E8B1

Accessibility & contrast

On white

1.70
#CECC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.38
#CECC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CECC51
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CECC51#FFFFFF#000000##000000
##CECC511.001.7012.3812.38
#FFFFFF1.701.0021.0021.00
#00000012.3821.001.001.00
##00000012.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC442
Deuteranopia (green-blind)
#DEC958
Tritanopia (blue-blind)
#DCC0B2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cecc51;
/* rgb */ color: rgb(206, 204, 81);
/* oklch */ color: oklch(82.4% 0.144 108.3);
Tailwind
colors: {
  custom: {
    50: '#e0db87',
    500: '#cecc51',
    950: '#000000',
  },
}
SCSS
$custom: #cecc51;
$custom-light: #e0db87;
$custom-dark: #000000;
JSON
{
  "hex": "#cecc51",
  "rgb": {
    "r": 206,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 59.04,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.82359,
    "c": 0.14369,
    "h": 108.3
  },
  "luminance": 0.56902
}

Semantic roles & 50–950 ramp

primary
#CECC51
secondary
#3B3D88
accent
#4BDF48
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CECC51

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

Preview Lab → · Contrast checker → · Palette generator →

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