#CCCC42#CCCC42

#CCCC42 is a very light, vivid yellow. Relative luminance 0.564; OKLCH L 82.1% C 0.155 H 109.4°. Best body text is #000000 at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#CCCC42
RGBrgb(204, 204, 66)
HSLhsl(60, 58%, 53%)
HSVhsv(60, 68%, 80%)
CMYKcmyk(0%, 0%, 67.6%, 20%)
CIE-LABlab(79.85, -16.42, 65.43)
CIE-LCHlch(79.85, 67.46, 104.09°)
OKLaboklab(82.07% -0.0514 0.1462)
OKLCHoklch(82.07% 0.155 109.4)
XYZxyz(47.4797, 56.4178, 13.5419)
Luminance0.5642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC42 #4242CC
analogous
#CC8742 #CCCC42 #87CC42
triadic
#CCCC42 #42CCCC #CC42CC
tetradic
#CCCC42 #42CC87 #4242CC #CC4287
square
#CCCC42 #42CC87 #4242CC #CC4287
split-complementary
#CCCC42 #4287CC #8742CC
monochromatic
#74741F #A4A42C #CCCC42 #D9D972 #E6E6A2

Accessibility & contrast

On white

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

On black

12.28
#CCCC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC42
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC42#FFFFFF#000000##000000
##CCCC421.001.7112.2812.28
#FFFFFF1.711.0021.0021.00
#00000012.2821.001.001.00
##00000012.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC42D
Deuteranopia (green-blind)
#DEC84C
Tritanopia (blue-blind)
#DABFB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cccc42;
/* rgb */ color: rgb(204, 204, 66);
/* oklch */ color: oklch(82.1% 0.155 109.4);
Tailwind
colors: {
  custom: {
    50: '#dfdb7e',
    500: '#cccc42',
    950: '#000000',
  },
}
SCSS
$custom: #cccc42;
$custom-light: #dfdb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc42",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.82065,
    "c": 0.15501,
    "h": 109.4
  },
  "luminance": 0.56416
}

Semantic roles & 50–950 ramp

primary
#CCCC42
secondary
#35357D
accent
#47E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCCC42

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

Preview Lab → · Contrast checker → · Palette generator →

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