#CCCC51#CCCC51

#CCCC51 is a very light, vivid yellow. Relative luminance 0.566; OKLCH L 82.2% C 0.144 H 109.2°. Best body text is #000000 at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#CCCC51
RGBrgb(204, 204, 81)
HSLhsl(60, 55%, 56%)
HSVhsv(60, 60%, 80%)
CMYKcmyk(0%, 0%, 60.3%, 20%)
CIE-LABlab(79.96, -15.52, 59.51)
CIE-LCHlch(79.96, 61.50, 104.62°)
OKLaboklab(82.19% -0.0473 0.136)
OKLCHoklch(82.19% 0.144 109.2)
XYZxyz(47.9814, 56.6185, 16.1839)
Luminance0.5662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC51 #5151CC
analogous
#CC8E51 #CCCC51 #8ECC51
triadic
#CCCC51 #51CCCC #CC51CC
tetradic
#CCCC51 #51CC8E #5151CC #CC518E
square
#CCCC51 #51CC8E #5151CC #CC518E
split-complementary
#CCCC51 #518ECC #8E51CC
monochromatic
#7E7E25 #ADAD33 #CCCC51 #DADA80 #E8E8B0

Accessibility & contrast

On white

1.70
#CCCC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.32
#CCCC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC51
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC51#FFFFFF#000000##000000
##CCCC511.001.7012.3212.32
#FFFFFF1.701.0021.0021.00
#00000012.3221.001.001.00
##00000012.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC442
Deuteranopia (green-blind)
#DDC858
Tritanopia (blue-blind)
#D9C0B2
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cccc51;
/* rgb */ color: rgb(204, 204, 81);
/* oklch */ color: oklch(82.2% 0.144 109.2);
Tailwind
colors: {
  custom: {
    50: '#dedb87',
    500: '#cccc51',
    950: '#000000',
  },
}
SCSS
$custom: #cccc51;
$custom-light: #dedb87;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc51",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 60,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.82192,
    "c": 0.14401,
    "h": 109.2
  },
  "luminance": 0.56617
}

Semantic roles & 50–950 ramp

primary
#CCCC51
secondary
#3C3C86
accent
#4ADE4A
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CCCC51

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

Preview Lab → · Contrast checker → · Palette generator →

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