#CCCC72#CCCC72

#CCCC72 is a very light, moderate yellow. Relative luminance 0.572; OKLCH L 82.6% C 0.113 H 108.6°. Best body text is #000000 at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#CCCC72
RGBrgb(204, 204, 114)
HSLhsl(60, 47%, 62%)
HSVhsv(60, 44%, 80%)
CMYKcmyk(0%, 0%, 44.1%, 20%)
CIE-LABlab(80.31, -12.78, 44.65)
CIE-LCHlch(80.31, 46.45, 105.97°)
OKLaboklab(82.58% -0.0361 0.1072)
OKLCHoklch(82.58% 0.113 108.6)
XYZxyz(49.5329, 57.2391, 24.3553)
Luminance0.5724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC72 #7272CC
analogous
#CC9F72 #CCCC72 #9FCC72
triadic
#CCCC72 #72CCCC #CC72CC
tetradic
#CCCC72 #72CC9F #7272CC #CC729F
square
#CCCC72 #72CC9F #7272CC #CC729F
split-complementary
#CCCC72 #729FCC #9F72CC
monochromatic
#909034 #BCBC45 #CCCC72 #DCDC9F #EDEDCC

Accessibility & contrast

On white

1.69
#CCCC72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.45
#CCCC72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC72
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC72#FFFFFF#000000##000000
##CCCC721.001.6912.4512.45
#FFFFFF1.691.0021.0021.00
#00000012.4521.001.001.00
##00000012.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C56B
Deuteranopia (green-blind)
#DAC976
Tritanopia (blue-blind)
#D7C2B7
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cccc72;
/* rgb */ color: rgb(204, 204, 114);
/* oklch */ color: oklch(82.6% 0.113 108.6);
Tailwind
colors: {
  custom: {
    50: '#dddb9c',
    500: '#cccc72',
    950: '#000000',
  },
}
SCSS
$custom: #cccc72;
$custom-light: #dddb9c;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc72",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 114
  },
  "hsl": {
    "h": 60,
    "s": 46.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.82583,
    "c": 0.11311,
    "h": 108.6
  },
  "luminance": 0.57238
}

Semantic roles & 50–950 ramp

primary
#CCCC72
secondary
#4C4C96
accent
#2BBA2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #CCCC72

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

Preview Lab → · Contrast checker → · Palette generator →

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