#CEC956#CEC956

#CEC956 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.8% C 0.137 H 106.7°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#CEC956
RGBrgb(206, 201, 86)
HSLhsl(58, 55%, 57%)
HSVhsv(58, 58%, 81%)
CMYKcmyk(0%, 2.4%, 58.3%, 19.2%)
CIE-LABlab(79.37, -12.84, 56.74)
CIE-LCHlch(79.37, 58.17, 102.75°)
OKLaboklab(81.77% -0.0393 0.1307)
OKLCHoklch(81.77% 0.137 106.7)
XYZxyz(48.0215, 55.5685, 16.9985)
Luminance0.5557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC956 #565BCE
analogous
#CE8D56 #CEC956 #97CE56
triadic
#CEC956 #56CEC9 #C956CE
tetradic
#CEC956 #56CE8D #565BCE #CE5697
square
#CEC956 #56CE8D #565BCE #CE5697
split-complementary
#CEC956 #5697CE #8D56CE
monochromatic
#838026 #B3AE34 #CEC956 #DCD885 #EAE7B5

Accessibility & contrast

On white

1.73
#CEC956 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.11
#CEC956 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC956
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC956#FFFFFF#000000##000000
##CEC9561.001.7312.1112.11
#FFFFFF1.731.0021.0021.00
#00000012.1121.001.001.00
##00000012.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C249
Deuteranopia (green-blind)
#DBC75C
Tritanopia (blue-blind)
#DCBDB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cec956;
/* rgb */ color: rgb(206, 201, 86);
/* oklch */ color: oklch(81.8% 0.137 106.7);
Tailwind
colors: {
  custom: {
    50: '#e0d98a',
    500: '#cec956',
    950: '#000000',
  },
}
SCSS
$custom: #cec956;
$custom-light: #e0d98a;
$custom-dark: #000000;
JSON
{
  "hex": "#cec956",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 86
  },
  "hsl": {
    "h": 57.5,
    "s": 55.046,
    "l": 57.255
  },
  "oklch": {
    "l": 0.8177,
    "c": 0.1365,
    "h": 106.7
  },
  "luminance": 0.55567
}

Semantic roles & 50–950 ramp

primary
#CEC956
secondary
#3E418B
accent
#50DE49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC956

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

Preview Lab → · Contrast checker → · Palette generator →

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