#CCC970#CCC970

#CCC970 is a light, moderate yellow. Relative luminance 0.558; OKLCH L 81.9% C 0.112 H 106.9°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#CCC970
RGBrgb(204, 201, 112)
HSLhsl(58, 47%, 62%)
HSVhsv(58, 45%, 80%)
CMYKcmyk(0%, 1.5%, 45.1%, 20%)
CIE-LABlab(79.49, -11.46, 44.62)
CIE-LCHlch(79.49, 46.07, 104.40°)
OKLaboklab(81.92% -0.0325 0.107)
OKLCHoklch(81.92% 0.112 106.9)
XYZxyz(48.7141, 55.7817, 23.5269)
Luminance0.5578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC970 #7073CC
analogous
#CC9B70 #CCC970 #A1CC70
triadic
#CCC970 #70CCC9 #C970CC
tetradic
#CCC970 #70CC9B #7073CC #CC70A1
square
#CCC970 #70CC9B #7073CC #CC70A1
split-complementary
#CCC970 #70A1CC #9B70CC
monochromatic
#8F8C33 #BCB843 #CCC970 #DCDA9D #ECEBCA

Accessibility & contrast

On white

1.73
#CCC970 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.16
#CCC970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC970
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC970#FFFFFF#000000##000000
##CCC9701.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C369
Deuteranopia (green-blind)
#D8C774
Tritanopia (blue-blind)
#D8BFB4
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #ccc970;
/* rgb */ color: rgb(204, 201, 112);
/* oklch */ color: oklch(81.9% 0.112 106.9);
Tailwind
colors: {
  custom: {
    50: '#ddd99b',
    500: '#ccc970',
    950: '#000000',
  },
}
SCSS
$custom: #ccc970;
$custom-light: #ddd99b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc970",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 112
  },
  "hsl": {
    "h": 58.043,
    "s": 47.423,
    "l": 61.961
  },
  "oklch": {
    "l": 0.81919,
    "c": 0.11182,
    "h": 106.9
  },
  "luminance": 0.55781
}

Semantic roles & 50–950 ramp

primary
#CCC970
secondary
#4B4D95
accent
#30BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CCC970

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

Preview Lab → · Contrast checker → · Palette generator →

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