#CEC451#CEC451

#CEC451 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.7% C 0.136 H 104.3°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#CEC451
RGBrgb(206, 196, 81)
HSLhsl(55, 56%, 56%)
HSVhsv(55, 61%, 81%)
CMYKcmyk(0%, 4.9%, 60.7%, 19.2%)
CIE-LABlab(77.99, -10.65, 57.42)
CIE-LCHlch(77.99, 58.40, 100.50°)
OKLaboklab(80.66% -0.0336 0.1315)
OKLCHoklch(80.66% 0.136 104.3)
XYZxyz(46.6804, 53.1974, 15.5922)
Luminance0.5320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC451 #515BCE
analogous
#CE8651 #CEC451 #9ACE51
triadic
#CEC451 #51CEC4 #C451CE
tetradic
#CEC451 #51CE86 #515BCE #CE519A
square
#CEC451 #51CE86 #515BCE #CE519A
split-complementary
#CEC451 #519ACE #8651CE
monochromatic
#807924 #B0A632 #CEC451 #DBD481 #E9E4B1

Accessibility & contrast

On white

1.80
#CEC451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#CEC451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC451
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC451#FFFFFF#000000##000000
##CEC4511.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE44
Deuteranopia (green-blind)
#D7C357
Tritanopia (blue-blind)
#DCB8AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec451;
/* rgb */ color: rgb(206, 196, 81);
/* oklch */ color: oklch(80.7% 0.136 104.3);
Tailwind
colors: {
  custom: {
    50: '#e0d586',
    500: '#cec451',
    950: '#000000',
  },
}
SCSS
$custom: #cec451;
$custom-light: #e0d586;
$custom-dark: #000000;
JSON
{
  "hex": "#cec451",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 81
  },
  "hsl": {
    "h": 55.2,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.8066,
    "c": 0.13575,
    "h": 104.3
  },
  "luminance": 0.53196
}

Semantic roles & 50–950 ramp

primary
#CEC451
secondary
#3B4188
accent
#55DF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC451

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

Preview Lab → · Contrast checker → · Palette generator →

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