#CCC04F#CCC04F

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

Color values

HEX#CCC04F
RGBrgb(204, 192, 79)
HSLhsl(54, 55%, 55%)
HSVhsv(54, 61%, 80%)
CMYKcmyk(0%, 5.9%, 61.3%, 20%)
CIE-LABlab(76.74, -9.57, 56.88)
CIE-LCHlch(76.74, 57.68, 99.56°)
OKLaboklab(79.62% -0.0307 0.1301)
OKLCHoklch(79.62% 0.134 103.3)
XYZxyz(45.1644, 51.1028, 14.8804)
Luminance0.5110 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC04F #4F5BCC
analogous
#CC814F #CCC04F #99CC4F
triadic
#CCC04F #4FCCC0 #C04FCC
tetradic
#CCC04F #4FCC81 #4F5BCC #CC4F99
square
#CCC04F #4FCC81 #4F5BCC #CC4F99
split-complementary
#CCC04F #4F99CC #814FCC
monochromatic
#7D7424 #ACA032 #CCC04F #DAD17E #E7E2AE

Accessibility & contrast

On white

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

On black

11.22
#CCC04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC04F
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC04F#FFFFFF#000000##000000
##CCC04F1.001.8711.2211.22
#FFFFFF1.871.0021.0021.00
#00000011.2221.001.001.00
##00000011.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA42
Deuteranopia (green-blind)
#D4C055
Tritanopia (blue-blind)
#DAB4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc04f;
/* rgb */ color: rgb(204, 192, 79);
/* oklch */ color: oklch(79.6% 0.134 103.3);
Tailwind
colors: {
  custom: {
    50: '#ded285',
    500: '#ccc04f',
    950: '#000000',
  },
}
SCSS
$custom: #ccc04f;
$custom-light: #ded285;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc04f",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 54.24,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.7962,
    "c": 0.13372,
    "h": 103.3
  },
  "luminance": 0.51101
}

Semantic roles & 50–950 ramp

primary
#CCC04F
secondary
#3B4284
accent
#58DE49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC04F

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

Preview Lab → · Contrast checker → · Palette generator →

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