#CCD978#CCD978

#CCD978 is a very light, vivid yellow. Relative luminance 0.638; OKLCH L 85.4% C 0.123 H 115.3°. Best body text is #000000 at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#CCD978
RGBrgb(204, 217, 120)
HSLhsl(68, 56%, 66%)
HSVhsv(68, 45%, 85%)
CMYKcmyk(6%, 0%, 44.7%, 14.9%)
CIE-LABlab(83.87, -18.67, 46.10)
CIE-LCHlch(83.87, 49.73, 112.04°)
OKLaboklab(85.45% -0.0524 0.1108)
OKLCHoklch(85.45% 0.123 115.3)
XYZxyz(53.1054, 63.8198, 27.2865)
Luminance0.6382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD978 #8578D9
analogous
#D9B578 #CCD978 #9BD978
triadic
#CCD978 #78CCD9 #D978CC
tetradic
#CCD978 #78D9B5 #8578D9 #D9789B
square
#CCD978 #78D9B5 #8578D9 #D9789B
split-complementary
#CCD978 #789BD9 #B578D9
monochromatic
#97A72F #BACC48 #CCD978 #DEE6A8 #F0F4D8

Accessibility & contrast

On white

1.53
#CCD978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.76
#CCD978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD978
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD978#FFFFFF#000000##000000
##CCD9781.001.5313.7613.76
#FFFFFF1.531.0021.0021.00
#00000013.7621.001.001.00
##00000013.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D070
Deuteranopia (green-blind)
#E4D27D
Tritanopia (blue-blind)
#D6CFC2
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #ccd978;
/* rgb */ color: rgb(204, 217, 120);
/* oklch */ color: oklch(85.4% 0.123 115.3);
Tailwind
colors: {
  custom: {
    50: '#dde4a1',
    500: '#ccd978',
    950: '#000000',
  },
}
SCSS
$custom: #ccd978;
$custom-light: #dde4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd978",
  "rgb": {
    "r": 204,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 68.041,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.85445,
    "c": 0.12257,
    "h": 115.3
  },
  "luminance": 0.63819
}

Semantic roles & 50–950 ramp

primary
#CCD978
secondary
#574AAB
accent
#22C438
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CCD978

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

Preview Lab → · Contrast checker → · Palette generator →

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