#CCC158#CCC158

#CCC158 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.9% C 0.127 H 103.3°. Best body text is #000000 at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#CCC158
RGBrgb(204, 193, 88)
HSLhsl(54, 53%, 57%)
HSVhsv(54, 57%, 80%)
CMYKcmyk(0%, 5.4%, 56.9%, 20%)
CIE-LABlab(77.09, -9.45, 53.24)
CIE-LCHlch(77.09, 54.07, 100.06°)
OKLaboklab(79.93% -0.0293 0.1235)
OKLCHoklch(79.93% 0.127 103.3)
XYZxyz(45.7348, 51.6835, 16.7974)
Luminance0.5168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC158 #5863CC
analogous
#CC8758 #CCC158 #9DCC58
triadic
#CCC158 #58CCC1 #C158CC
tetradic
#CCC158 #58CC87 #5863CC #CC589D
square
#CCC158 #58CC87 #5863CC #CC589D
split-complementary
#CCC158 #589DCC #8758CC
monochromatic
#827928 #B1A536 #CCC158 #DAD287 #E9E4B6

Accessibility & contrast

On white

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

On black

11.34
#CCC158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC158
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC158#FFFFFF#000000##000000
##CCC1581.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB4D
Deuteranopia (green-blind)
#D4C15D
Tritanopia (blue-blind)
#DAB5AA
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc158;
/* rgb */ color: rgb(204, 193, 88);
/* oklch */ color: oklch(79.9% 0.127 103.3);
Tailwind
colors: {
  custom: {
    50: '#ded38b',
    500: '#ccc158',
    950: '#000000',
  },
}
SCSS
$custom: #ccc158;
$custom-light: #ded38b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc158",
  "rgb": {
    "r": 204,
    "g": 193,
    "b": 88
  },
  "hsl": {
    "h": 54.31,
    "s": 53.211,
    "l": 57.255
  },
  "oklch": {
    "l": 0.79925,
    "c": 0.12696,
    "h": 103.3
  },
  "luminance": 0.51682
}

Semantic roles & 50–950 ramp

primary
#CCC158
secondary
#3F4689
accent
#59DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CCC158

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

Preview Lab → · Contrast checker → · Palette generator →

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