#CCC478#CCC478

#CCC478 is a light, moderate yellow. Relative luminance 0.537; OKLCH L 81.0% C 0.098 H 103.1°. Best body text is #000000 at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#CCC478
RGBrgb(204, 196, 120)
HSLhsl(54, 45%, 64%)
HSVhsv(54, 41%, 80%)
CMYKcmyk(0%, 3.9%, 41.2%, 20%)
CIE-LABlab(78.27, -8.08, 39.10)
CIE-LCHlch(78.27, 39.93, 101.68°)
OKLaboklab(80.99% -0.0221 0.0951)
OKLCHoklch(80.99% 0.098 103.1)
XYZxyz(48.0328, 53.6746, 25.5957)
Luminance0.5367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC478 #7880CC
analogous
#CC9A78 #CCC478 #AACC78
triadic
#CCC478 #78CCC4 #C478CC
tetradic
#CCC478 #78CC9A #7880CC #CC78AA
square
#CCC478 #78CC9A #7880CC #CC78AA
split-complementary
#CCC478 #78AACC #9A78CC
monochromatic
#928A37 #BBB14C #CCC478 #DDD7A4 #EEEBD1

Accessibility & contrast

On white

1.79
#CCC478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.73
#CCC478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC478
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC478#FFFFFF#000000##000000
##CCC4781.001.7911.7311.73
#FFFFFF1.791.0021.0021.00
#00000011.7321.001.001.00
##00000011.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BF72
Deuteranopia (green-blind)
#D3C47B
Tritanopia (blue-blind)
#D7BBB1
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #ccc478;
/* rgb */ color: rgb(204, 196, 120);
/* oklch */ color: oklch(81.0% 0.098 103.1);
Tailwind
colors: {
  custom: {
    50: '#ddd5a0',
    500: '#ccc478',
    950: '#000000',
  },
}
SCSS
$custom: #ccc478;
$custom-light: #ddd5a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc478",
  "rgb": {
    "r": 204,
    "g": 196,
    "b": 120
  },
  "hsl": {
    "h": 54.286,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.80987,
    "c": 0.09764,
    "h": 103.1
  },
  "luminance": 0.53673
}

Semantic roles & 50–950 ramp

primary
#CCC478
secondary
#4F5699
accent
#3AB82D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC478

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

Preview Lab → · Contrast checker → · Palette generator →

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