#CCC152#CCC152

#CCC152 is a light, vivid yellow. Relative luminance 0.516; OKLCH L 79.9% C 0.132 H 103.7°. Best body text is #000000 at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#CCC152
RGBrgb(204, 193, 82)
HSLhsl(55, 54%, 56%)
HSVhsv(55, 60%, 80%)
CMYKcmyk(0%, 5.4%, 59.8%, 20%)
CIE-LABlab(77.03, -9.88, 55.88)
CIE-LCHlch(77.03, 56.75, 100.03°)
OKLaboklab(79.86% -0.0312 0.1284)
OKLCHoklch(79.86% 0.132 103.7)
XYZxyz(45.4964, 51.5881, 15.5420)
Luminance0.5159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC152 #525DCC
analogous
#CC8452 #CCC152 #9ACC52
triadic
#CCC152 #52CCC1 #C152CC
tetradic
#CCC152 #52CC84 #525DCC #CC529A
square
#CCC152 #52CC84 #525DCC #CC529A
split-complementary
#CCC152 #529ACC #8452CC
monochromatic
#7E7625 #AEA333 #CCC152 #DAD281 #E8E3B1

Accessibility & contrast

On white

1.86
#CCC152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.32
#CCC152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC152
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC152#FFFFFF#000000##000000
##CCC1521.001.8611.3211.32
#FFFFFF1.861.0021.0021.00
#00000011.3221.001.001.00
##00000011.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D4C158
Tritanopia (blue-blind)
#DAB5A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc152;
/* rgb */ color: rgb(204, 193, 82);
/* oklch */ color: oklch(79.9% 0.132 103.7);
Tailwind
colors: {
  custom: {
    50: '#ded387',
    500: '#ccc152',
    950: '#000000',
  },
}
SCSS
$custom: #ccc152;
$custom-light: #ded387;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc152",
  "rgb": {
    "r": 204,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 54.59,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.79861,
    "c": 0.13217,
    "h": 103.7
  },
  "luminance": 0.51586
}

Semantic roles & 50–950 ramp

primary
#CCC152
secondary
#3C4386
accent
#57DE4A
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140B
muted
#84837E

Preview Lab

Preview with #CCC152

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

Preview Lab → · Contrast checker → · Palette generator →

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