#CCC151#CCC151

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

Color values

HEX#CCC151
RGBrgb(204, 193, 81)
HSLhsl(55, 55%, 56%)
HSVhsv(55, 60%, 80%)
CMYKcmyk(0%, 5.4%, 60.3%, 20%)
CIE-LABlab(77.02, -9.95, 56.31)
CIE-LCHlch(77.02, 57.19, 100.02°)
OKLaboklab(79.85% -0.0315 0.1292)
OKLCHoklch(79.85% 0.133 103.7)
XYZxyz(45.4586, 51.5730, 15.3430)
Luminance0.5157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC151 #515CCC
analogous
#CC8351 #CCC151 #99CC51
triadic
#CCC151 #51CCC1 #C151CC
tetradic
#CCC151 #51CC83 #515CCC #CC5199
square
#CCC151 #51CC83 #515CCC #CC5199
split-complementary
#CCC151 #5199CC #8351CC
monochromatic
#7E7625 #ADA233 #CCC151 #DAD280 #E8E3B0

Accessibility & contrast

On white

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

On black

11.31
#CCC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC151
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC151#FFFFFF#000000##000000
##CCC1511.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccc151;
/* rgb */ color: rgb(204, 193, 81);
/* oklch */ color: oklch(79.9% 0.133 103.7);
Tailwind
colors: {
  custom: {
    50: '#ded386',
    500: '#ccc151',
    950: '#000000',
  },
}
SCSS
$custom: #ccc151;
$custom-light: #ded386;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc151",
  "rgb": {
    "r": 204,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 54.634,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.79851,
    "c": 0.133,
    "h": 103.7
  },
  "luminance": 0.51571
}

Semantic roles & 50–950 ramp

primary
#CCC151
secondary
#3C4286
accent
#57DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC151

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

Preview Lab → · Contrast checker → · Palette generator →

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