#CCC978#CCC978

#CCC978 is a very light, moderate yellow. Relative luminance 0.560; OKLCH L 82.0% C 0.103 H 106.6°. Best body text is #000000 at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#CCC978
RGBrgb(204, 201, 120)
HSLhsl(58, 45%, 64%)
HSVhsv(58, 41%, 80%)
CMYKcmyk(0%, 1.5%, 41.2%, 20%)
CIE-LABlab(79.60, -10.64, 40.78)
CIE-LCHlch(79.60, 42.14, 104.63°)
OKLaboklab(82.04% -0.0295 0.0989)
OKLCHoklch(82.04% 0.103 106.6)
XYZxyz(49.1795, 55.9679, 25.9779)
Luminance0.5597 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC978 #787BCC
analogous
#CC9F78 #CCC978 #A5CC78
triadic
#CCC978 #78CCC9 #C978CC
tetradic
#CCC978 #78CC9F #787BCC #CC78A5
square
#CCC978 #78CC9F #787BCC #CC78A5
split-complementary
#CCC978 #78A5CC #9F78CC
monochromatic
#928F37 #BBB74C #CCC978 #DDDBA4 #EEEDD1

Accessibility & contrast

On white

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

On black

12.19
#CCC978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC978
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC978#FFFFFF#000000##000000
##CCC9781.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C372
Deuteranopia (green-blind)
#D7C77C
Tritanopia (blue-blind)
#D7BFB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #ccc978;
/* rgb */ color: rgb(204, 201, 120);
/* oklch */ color: oklch(82.0% 0.103 106.6);
Tailwind
colors: {
  custom: {
    50: '#ddd9a0',
    500: '#ccc978',
    950: '#000000',
  },
}
SCSS
$custom: #ccc978;
$custom-light: #ddd9a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc978",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 120
  },
  "hsl": {
    "h": 57.857,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.82038,
    "c": 0.10318,
    "h": 106.6
  },
  "luminance": 0.55967
}

Semantic roles & 50–950 ramp

primary
#CCC978
secondary
#4F5299
accent
#32B82D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC978

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

Preview Lab → · Contrast checker → · Palette generator →

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