#CEC951#CEC951

#CEC951 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.7% C 0.141 H 106.9°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#CEC951
RGBrgb(206, 201, 81)
HSLhsl(58, 56%, 56%)
HSVhsv(58, 61%, 81%)
CMYKcmyk(0%, 2.4%, 60.7%, 19.2%)
CIE-LABlab(79.32, -13.18, 58.87)
CIE-LCHlch(79.32, 60.32, 102.62°)
OKLaboklab(81.72% -0.0408 0.1346)
OKLCHoklch(81.72% 0.141 106.9)
XYZxyz(47.8270, 55.4907, 15.9744)
Luminance0.5549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC951 #5156CE
analogous
#CE8B51 #CEC951 #95CE51
triadic
#CEC951 #51CEC9 #C951CE
tetradic
#CEC951 #51CE8B #5156CE #CE5195
square
#CEC951 #51CE8B #5156CE #CE5195
split-complementary
#CEC951 #5195CE #8B51CE
monochromatic
#807D24 #B0AB32 #CEC951 #DBD881 #E9E7B1

Accessibility & contrast

On white

1.74
#CEC951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#CEC951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC951
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC951#FFFFFF#000000##000000
##CEC9511.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C243
Deuteranopia (green-blind)
#DBC758
Tritanopia (blue-blind)
#DCBDB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec951;
/* rgb */ color: rgb(206, 201, 81);
/* oklch */ color: oklch(81.7% 0.141 106.9);
Tailwind
colors: {
  custom: {
    50: '#e0d987',
    500: '#cec951',
    950: '#000000',
  },
}
SCSS
$custom: #cec951;
$custom-light: #e0d987;
$custom-dark: #000000;
JSON
{
  "hex": "#cec951",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 57.6,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.8172,
    "c": 0.14065,
    "h": 106.9
  },
  "luminance": 0.55489
}

Semantic roles & 50–950 ramp

primary
#CEC951
secondary
#3B3E88
accent
#4EDF48
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC951

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

Preview Lab → · Contrast checker → · Palette generator →

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