#CCC878#CCC878

#CCC878 is a light, moderate yellow. Relative luminance 0.555; OKLCH L 81.8% C 0.102 H 106.0°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#CCC878
RGBrgb(204, 200, 120)
HSLhsl(57, 45%, 64%)
HSVhsv(57, 41%, 80%)
CMYKcmyk(0%, 2%, 41.2%, 20%)
CIE-LABlab(79.33, -10.13, 40.44)
CIE-LCHlch(79.33, 41.69, 104.07°)
OKLaboklab(81.83% -0.028 0.0981)
OKLCHoklch(81.83% 0.102 106)
XYZxyz(48.9471, 55.5032, 25.9004)
Luminance0.5550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC878 #787CCC
analogous
#CC9E78 #CCC878 #A6CC78
triadic
#CCC878 #78CCC8 #C878CC
tetradic
#CCC878 #78CC9E #787CCC #CC78A6
square
#CCC878 #78CC9E #787CCC #CC78A6
split-complementary
#CCC878 #78A6CC #9E78CC
monochromatic
#928E37 #BBB64C #CCC878 #DDDAA4 #EEECD1

Accessibility & contrast

On white

1.74
#CCC878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#CCC878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC878
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC878#FFFFFF#000000##000000
##CCC8781.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C272
Deuteranopia (green-blind)
#D7C67B
Tritanopia (blue-blind)
#D7BFB5
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc878;
/* rgb */ color: rgb(204, 200, 120);
/* oklch */ color: oklch(81.8% 0.102 106.0);
Tailwind
colors: {
  custom: {
    50: '#ddd8a0',
    500: '#ccc878',
    950: '#000000',
  },
}
SCSS
$custom: #ccc878;
$custom-light: #ddd8a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc878",
  "rgb": {
    "r": 204,
    "g": 200,
    "b": 120
  },
  "hsl": {
    "h": 57.143,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.81827,
    "c": 0.10204,
    "h": 106
  },
  "luminance": 0.55502
}

Semantic roles & 50–950 ramp

primary
#CCC878
secondary
#4F5399
accent
#34B82D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC878

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

Preview Lab → · Contrast checker → · Palette generator →

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