#CCCC78#CCCC78

#CCCC78 is a very light, moderate yellow. Relative luminance 0.574; OKLCH L 82.7% C 0.107 H 108.5°. Best body text is #000000 at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#CCCC78
RGBrgb(204, 204, 120)
HSLhsl(60, 45%, 64%)
HSVhsv(60, 41%, 80%)
CMYKcmyk(0%, 0%, 41.2%, 20%)
CIE-LABlab(80.39, -12.17, 41.78)
CIE-LCHlch(80.39, 43.51, 106.24°)
OKLaboklab(82.67% -0.0339 0.1011)
OKLCHoklch(82.67% 0.107 108.5)
XYZxyz(49.8857, 57.3802, 26.2133)
Luminance0.5738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC78 #7878CC
analogous
#CCA278 #CCCC78 #A2CC78
triadic
#CCCC78 #78CCCC #CC78CC
tetradic
#CCCC78 #78CCA2 #7878CC #CC78A2
square
#CCCC78 #78CCA2 #7878CC #CC78A2
split-complementary
#CCCC78 #78A2CC #A278CC
monochromatic
#929237 #BBBB4C #CCCC78 #DDDDA4 #EEEED1

Accessibility & contrast

On white

1.68
#CCCC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.48
#CCCC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC78
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC78#FFFFFF#000000##000000
##CCCC781.001.6812.4812.48
#FFFFFF1.681.0021.0021.00
#00000012.4821.001.001.00
##00000012.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C671
Deuteranopia (green-blind)
#DAC97C
Tritanopia (blue-blind)
#D7C2B8
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cccc78;
/* rgb */ color: rgb(204, 204, 120);
/* oklch */ color: oklch(82.7% 0.107 108.5);
Tailwind
colors: {
  custom: {
    50: '#dddba0',
    500: '#cccc78',
    950: '#000000',
  },
}
SCSS
$custom: #cccc78;
$custom-light: #dddba0;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc78",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 120
  },
  "hsl": {
    "h": 60,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.82672,
    "c": 0.10665,
    "h": 108.5
  },
  "luminance": 0.57379
}

Semantic roles & 50–950 ramp

primary
#CCCC78
secondary
#4F4F99
accent
#2DB82D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CCCC78

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

Preview Lab → · Contrast checker → · Palette generator →

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