#CCC04E#CCC04E

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

Color values

HEX#CCC04E
RGBrgb(204, 192, 78)
HSLhsl(54, 55%, 55%)
HSVhsv(54, 62%, 80%)
CMYKcmyk(0%, 5.9%, 61.8%, 20%)
CIE-LABlab(76.73, -9.64, 57.31)
CIE-LCHlch(76.73, 58.11, 99.55°)
OKLaboklab(79.61% -0.031 0.1309)
OKLCHoklch(79.61% 0.135 103.3)
XYZxyz(45.1283, 51.0884, 14.6902)
Luminance0.5109 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC04E #4E5ACC
analogous
#CC814E #CCC04E #99CC4E
triadic
#CCC04E #4ECCC0 #C04ECC
tetradic
#CCC04E #4ECC81 #4E5ACC #CC4E99
square
#CCC04E #4ECC81 #4E5ACC #CC4E99
split-complementary
#CCC04E #4E99CC #814ECC
monochromatic
#7C7324 #ABA031 #CCC04E #DAD17E #E7E2AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCC04E#FFFFFF#000000##000000
##CCC04E1.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)
#D0BA41
Deuteranopia (green-blind)
#D4C054
Tritanopia (blue-blind)
#DAB4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc04e;
/* rgb */ color: rgb(204, 192, 78);
/* oklch */ color: oklch(79.6% 0.135 103.3);
Tailwind
colors: {
  custom: {
    50: '#ded284',
    500: '#ccc04e',
    950: '#000000',
  },
}
SCSS
$custom: #ccc04e;
$custom-light: #ded284;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc04e",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 54.286,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.7961,
    "c": 0.13453,
    "h": 103.3
  },
  "luminance": 0.51087
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCC04E

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

Preview Lab → · Contrast checker → · Palette generator →

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