#CEC151#CEC151

#CEC151 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.0% C 0.133 H 102.7°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#CEC151
RGBrgb(206, 193, 81)
HSLhsl(54, 56%, 56%)
HSVhsv(54, 61%, 81%)
CMYKcmyk(0%, 6.3%, 60.7%, 19.2%)
CIE-LABlab(77.20, -9.11, 56.55)
CIE-LCHlch(77.20, 57.28, 99.15°)
OKLaboklab(80.03% -0.0293 0.1297)
OKLCHoklch(80.03% 0.133 102.7)
XYZxyz(46.0105, 51.8576, 15.3689)
Luminance0.5186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC151 #515ECE
analogous
#CE8351 #CEC151 #9DCE51
triadic
#CEC151 #51CEC1 #C151CE
tetradic
#CEC151 #51CE83 #515ECE #CE519D
square
#CEC151 #51CE83 #515ECE #CE519D
split-complementary
#CEC151 #519DCE #8351CE
monochromatic
#807724 #B0A332 #CEC151 #DBD281 #E9E3B1

Accessibility & contrast

On white

1.85
#CEC151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#CEC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC151
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC151#FFFFFF#000000##000000
##CEC1511.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB44
Deuteranopia (green-blind)
#D5C157
Tritanopia (blue-blind)
#DCB5A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec151;
/* rgb */ color: rgb(206, 193, 81);
/* oklch */ color: oklch(80.0% 0.133 102.7);
Tailwind
colors: {
  custom: {
    50: '#e0d386',
    500: '#cec151',
    950: '#000000',
  },
}
SCSS
$custom: #cec151;
$custom-light: #e0d386;
$custom-dark: #000000;
JSON
{
  "hex": "#cec151",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 53.76,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.80028,
    "c": 0.13293,
    "h": 102.7
  },
  "luminance": 0.51856
}

Semantic roles & 50–950 ramp

primary
#CEC151
secondary
#3B4388
accent
#58DF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC151

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

Preview Lab → · Contrast checker → · Palette generator →

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