#CDC978#CDC978

#CDC978 is a very light, moderate yellow. Relative luminance 0.561; OKLCH L 82.1% C 0.103 H 106.0°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#CDC978
RGBrgb(205, 201, 120)
HSLhsl(57, 46%, 64%)
HSVhsv(57, 41%, 80%)
CMYKcmyk(0%, 2%, 41.5%, 19.6%)
CIE-LABlab(79.68, -10.24, 40.89)
CIE-LCHlch(79.68, 42.16, 104.06°)
OKLaboklab(82.12% -0.0284 0.0991)
OKLCHoklch(82.12% 0.103 106)
XYZxyz(49.4545, 56.1097, 25.9908)
Luminance0.5611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC978 #787CCD
analogous
#CD9E78 #CDC978 #A6CD78
triadic
#CDC978 #78CDC9 #C978CD
tetradic
#CDC978 #78CD9E #787CCD #CD78A6
square
#CDC978 #78CD9E #787CCD #CD78A6
split-complementary
#CDC978 #78A6CD #9E78CD
monochromatic
#948F37 #BCB74B #CDC978 #DEDBA5 #EEEDD1

Accessibility & contrast

On white

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

On black

12.22
#CDC978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC978
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC978#FFFFFF#000000##000000
##CDC9781.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C372
Deuteranopia (green-blind)
#D8C77C
Tritanopia (blue-blind)
#D8BFB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc978;
/* rgb */ color: rgb(205, 201, 120);
/* oklch */ color: oklch(82.1% 0.103 106.0);
Tailwind
colors: {
  custom: {
    50: '#ddd9a0',
    500: '#cdc978',
    950: '#000000',
  },
}
SCSS
$custom: #cdc978;
$custom-light: #ddd9a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc978",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 120
  },
  "hsl": {
    "h": 57.176,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.82122,
    "c": 0.10312,
    "h": 106
  },
  "luminance": 0.56108
}

Semantic roles & 50–950 ramp

primary
#CDC978
secondary
#4F539A
accent
#33B92C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC978

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

Preview Lab → · Contrast checker → · Palette generator →

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