#CCC04A#CCC04A

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

Color values

HEX#CCC04A
RGBrgb(204, 192, 74)
HSLhsl(54, 56%, 55%)
HSVhsv(54, 64%, 80%)
CMYKcmyk(0%, 5.9%, 63.7%, 20%)
CIE-LABlab(76.70, -9.90, 58.98)
CIE-LCHlch(76.70, 59.81, 99.53°)
OKLaboklab(79.57% -0.0322 0.1339)
OKLCHoklch(79.57% 0.138 103.5)
XYZxyz(44.9892, 51.0328, 13.9577)
Luminance0.5103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC04A #4A56CC
analogous
#CC7F4A #CCC04A #97CC4A
triadic
#CCC04A #4ACCC0 #C04ACC
tetradic
#CCC04A #4ACC7F #4A56CC #CC4A97
square
#CCC04A #4ACC7F #4A56CC #CC4A97
split-complementary
#CCC04A #4A97CC #7F4ACC
monochromatic
#797122 #A99E30 #CCC04A #D9D17A #E7E1A9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCC04A#FFFFFF#000000##000000
##CCC04A1.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)
#D0BA3B
Deuteranopia (green-blind)
#D4C051
Tritanopia (blue-blind)
#DBB3A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc04a;
/* rgb */ color: rgb(204, 192, 74);
/* oklch */ color: oklch(79.6% 0.138 103.5);
Tailwind
colors: {
  custom: {
    50: '#dfd282',
    500: '#ccc04a',
    950: '#000000',
  },
}
SCSS
$custom: #ccc04a;
$custom-light: #dfd282;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc04a",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 54.462,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.79573,
    "c": 0.13769,
    "h": 103.5
  },
  "luminance": 0.51031
}

Semantic roles & 50–950 ramp

primary
#CCC04A
secondary
#393F82
accent
#56DF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC04A

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

Preview Lab → · Contrast checker → · Palette generator →

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