#CCC04D#CCC04D

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

Color values

HEX#CCC04D
RGBrgb(204, 192, 77)
HSLhsl(54, 55%, 55%)
HSVhsv(54, 62%, 80%)
CMYKcmyk(0%, 5.9%, 62.3%, 20%)
CIE-LABlab(76.72, -9.71, 57.73)
CIE-LCHlch(76.72, 58.54, 99.54°)
OKLaboklab(79.6% -0.0313 0.1317)
OKLCHoklch(79.6% 0.135 103.4)
XYZxyz(45.0927, 51.0742, 14.5028)
Luminance0.5107 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC04D #4D59CC
analogous
#CC814D #CCC04D #98CC4D
triadic
#CCC04D #4DCCC0 #C04DCC
tetradic
#CCC04D #4DCC81 #4D59CC #CC4D98
square
#CCC04D #4DCC81 #4D59CC #CC4D98
split-complementary
#CCC04D #4D98CC #814DCC
monochromatic
#7B7323 #AB9F31 #CCC04D #DAD17D #E7E2AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCC04D#FFFFFF#000000##000000
##CCC04D1.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)
#D0BA3F
Deuteranopia (green-blind)
#D4C053
Tritanopia (blue-blind)
#DAB4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc04d;
/* rgb */ color: rgb(204, 192, 77);
/* oklch */ color: oklch(79.6% 0.135 103.4);
Tailwind
colors: {
  custom: {
    50: '#ded284',
    500: '#ccc04d',
    950: '#000000',
  },
}
SCSS
$custom: #ccc04d;
$custom-light: #ded284;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc04d",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 54.331,
    "s": 55.459,
    "l": 55.098
  },
  "oklch": {
    "l": 0.79601,
    "c": 0.13533,
    "h": 103.4
  },
  "luminance": 0.51072
}

Semantic roles & 50–950 ramp

primary
#CCC04D
secondary
#3A4183
accent
#57DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC04D

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

Preview Lab → · Contrast checker → · Palette generator →

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