#CEC95B#CEC95B

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

Color values

HEX#CEC95B
RGBrgb(206, 201, 91)
HSLhsl(57, 54%, 58%)
HSVhsv(57, 56%, 81%)
CMYKcmyk(0%, 2.4%, 55.8%, 19.2%)
CIE-LABlab(79.42, -12.47, 54.55)
CIE-LCHlch(79.42, 55.95, 102.87°)
OKLaboklab(81.82% -0.0377 0.1266)
OKLCHoklch(81.82% 0.132 106.6)
XYZxyz(48.2300, 55.6519, 18.0968)
Luminance0.5565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC95B #5B60CE
analogous
#CE8F5B #CEC95B #99CE5B
triadic
#CEC95B #5BCEC9 #C95BCE
tetradic
#CEC95B #5BCE8F #5B60CE #CE5B99
square
#CEC95B #5BCE8F #5B60CE #CE5B99
split-complementary
#CEC95B #5B99CE #8F5BCE
monochromatic
#868228 #B6B036 #CEC95B #DCD98A #EAE8B9

Accessibility & contrast

On white

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

On black

12.13
#CEC95B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC95B
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC95B#FFFFFF#000000##000000
##CEC95B1.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C250
Deuteranopia (green-blind)
#DBC761
Tritanopia (blue-blind)
#DBBDB1
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cec95b;
/* rgb */ color: rgb(206, 201, 91);
/* oklch */ color: oklch(81.8% 0.132 106.6);
Tailwind
colors: {
  custom: {
    50: '#dfd98d',
    500: '#cec95b',
    950: '#000000',
  },
}
SCSS
$custom: #cec95b;
$custom-light: #dfd98d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec95b",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 91
  },
  "hsl": {
    "h": 57.391,
    "s": 53.991,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81823,
    "c": 0.13214,
    "h": 106.6
  },
  "luminance": 0.5565
}

Semantic roles & 50–950 ramp

primary
#CEC95B
secondary
#40438D
accent
#51DD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC95B

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

Preview Lab → · Contrast checker → · Palette generator →

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