#CCCC47#CCCC47

#CCCC47 is a very light, vivid yellow. Relative luminance 0.565; OKLCH L 82.1% C 0.152 H 109.3°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#CCCC47
RGBrgb(204, 204, 71)
HSLhsl(60, 57%, 54%)
HSVhsv(60, 65%, 80%)
CMYKcmyk(0%, 0%, 65.2%, 20%)
CIE-LABlab(79.89, -16.14, 63.54)
CIE-LCHlch(79.89, 65.55, 104.26°)
OKLaboklab(82.1% -0.0501 0.143)
OKLCHoklch(82.1% 0.152 109.3)
XYZxyz(47.6336, 56.4794, 14.3524)
Luminance0.5648 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC47 #4747CC
analogous
#CC8A47 #CCCC47 #8ACC47
triadic
#CCCC47 #47CCCC #CC47CC
tetradic
#CCCC47 #47CC8A #4747CC #CC478A
square
#CCCC47 #47CC8A #4747CC #CC478A
split-complementary
#CCCC47 #478ACC #8A47CC
monochromatic
#777721 #A7A72E #CCCC47 #D9D977 #E7E7A7

Accessibility & contrast

On white

1.71
#CCCC47 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.30
#CCCC47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC47
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC47#FFFFFF#000000##000000
##CCCC471.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC434
Deuteranopia (green-blind)
#DEC850
Tritanopia (blue-blind)
#DABFB1
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cccc47;
/* rgb */ color: rgb(204, 204, 71);
/* oklch */ color: oklch(82.1% 0.152 109.3);
Tailwind
colors: {
  custom: {
    50: '#dfdb81',
    500: '#cccc47',
    950: '#000000',
  },
}
SCSS
$custom: #cccc47;
$custom-light: #dfdb81;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc47",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 71
  },
  "hsl": {
    "h": 60,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.82104,
    "c": 0.15158,
    "h": 109.3
  },
  "luminance": 0.56478
}

Semantic roles & 50–950 ramp

primary
#CCCC47
secondary
#373780
accent
#48E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCCC47

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

Preview Lab → · Contrast checker → · Palette generator →

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