#CCCC28#CCCC28

#CCCC28 is a light, vivid yellow. Relative luminance 0.562; OKLCH L 81.9% C 0.169 H 109.6°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#CCCC28
RGBrgb(204, 204, 40)
HSLhsl(60, 67%, 48%)
HSVhsv(60, 80%, 80%)
CMYKcmyk(0%, 0%, 80.4%, 20%)
CIE-LABlab(79.71, -17.51, 73.66)
CIE-LCHlch(79.71, 75.71, 103.38°)
OKLaboklab(81.91% -0.0567 0.1592)
OKLCHoklch(81.91% 0.169 109.6)
XYZxyz(46.8795, 56.1778, 10.3810)
Luminance0.5618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC28 #2828CC
analogous
#CC7A28 #CCCC28 #7ACC28
triadic
#CCCC28 #28CCCC #CC28CC
tetradic
#CCCC28 #28CC7A #2828CC #CC287A
square
#CCCC28 #28CC7A #2828CC #CC287A
split-complementary
#CCCC28 #287ACC #7A28CC
monochromatic
#666614 #99991E #CCCC28 #DDDD54 #E7E787

Accessibility & contrast

On white

1.72
#CCCC28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.24
#CCCC28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC28
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC28#FFFFFF#000000##000000
##CCCC281.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC300
Deuteranopia (green-blind)
#DFC838
Tritanopia (blue-blind)
#DBBEAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cccc28;
/* rgb */ color: rgb(204, 204, 40);
/* oklch */ color: oklch(81.9% 0.169 109.6);
Tailwind
colors: {
  custom: {
    50: '#e0db72',
    500: '#cccc28',
    950: '#000000',
  },
}
SCSS
$custom: #cccc28;
$custom-light: #e0db72;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc28",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 67.213,
    "l": 47.843
  },
  "oklch": {
    "l": 0.81913,
    "c": 0.16895,
    "h": 109.6
  },
  "luminance": 0.56176
}

Semantic roles & 50–950 ramp

primary
#CCCC28
secondary
#282870
accent
#3EEA3E
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CCCC28

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

Preview Lab → · Contrast checker → · Palette generator →

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