#CCC04C#CCC04C

#CCC04C is a light, vivid yellow. Relative luminance 0.511; OKLCH L 79.6% C 0.136 H 103.4°. Best body text is #000000 at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#CCC04C
RGBrgb(204, 192, 76)
HSLhsl(54, 56%, 55%)
HSVhsv(54, 63%, 80%)
CMYKcmyk(0%, 5.9%, 62.7%, 20%)
CIE-LABlab(76.72, -9.77, 58.15)
CIE-LCHlch(76.72, 58.97, 99.54°)
OKLaboklab(79.59% -0.0316 0.1324)
OKLCHoklch(79.59% 0.136 103.4)
XYZxyz(45.0577, 51.0601, 14.3182)
Luminance0.5106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC04C #4C58CC
analogous
#CC804C #CCC04C #98CC4C
triadic
#CCC04C #4CCCC0 #C04CCC
tetradic
#CCC04C #4CCC80 #4C58CC #CC4C98
square
#CCC04C #4CCC80 #4C58CC #CC4C98
split-complementary
#CCC04C #4C98CC #804CCC
monochromatic
#7B7223 #AA9F31 #CCC04C #DAD17C #E7E2AB

Accessibility & contrast

On white

1.87
#CCC04C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.21
#CCC04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC04C
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC04C#FFFFFF#000000##000000
##CCC04C1.001.8711.2111.21
#FFFFFF1.871.0021.0021.00
#00000011.2121.001.001.00
##00000011.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA3E
Deuteranopia (green-blind)
#D4C053
Tritanopia (blue-blind)
#DBB4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc04c;
/* rgb */ color: rgb(204, 192, 76);
/* oklch */ color: oklch(79.6% 0.136 103.4);
Tailwind
colors: {
  custom: {
    50: '#dfd283',
    500: '#ccc04c',
    950: '#000000',
  },
}
SCSS
$custom: #ccc04c;
$custom-light: #dfd283;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc04c",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 54.375,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.79591,
    "c": 0.13613,
    "h": 103.4
  },
  "luminance": 0.51058
}

Semantic roles & 50–950 ramp

primary
#CCC04C
secondary
#394083
accent
#57DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC04C

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

Preview Lab → · Contrast checker → · Palette generator →

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