#D2D978#D2D978

#D2D978 is a very light, vivid yellow. Relative luminance 0.647; OKLCH L 85.9% C 0.121 H 112.3°. Best body text is #000000 at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#D2D978
RGBrgb(210, 217, 120)
HSLhsl(64, 56%, 66%)
HSVhsv(64, 45%, 85%)
CMYKcmyk(3.2%, 0%, 44.7%, 14.9%)
CIE-LABlab(84.32, -16.31, 46.75)
CIE-LCHlch(84.32, 49.52, 109.23°)
OKLaboklab(85.91% -0.046 0.1122)
OKLCHoklch(85.91% 0.121 112.3)
XYZxyz(54.7822, 64.6843, 27.3651)
Luminance0.6468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D978 #7F78D9
analogous
#D9AF78 #D2D978 #A1D978
triadic
#D2D978 #78D2D9 #D978D2
tetradic
#D2D978 #78D9AF #7F78D9 #D978A1
square
#D2D978 #78D9AF #7F78D9 #D978A1
split-complementary
#D2D978 #78A1D9 #AF78D9
monochromatic
#9FA72F #C2CC48 #D2D978 #E2E6A8 #F2F4D8

Accessibility & contrast

On white

1.51
#D2D978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.94
#D2D978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D978
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D978#FFFFFF#000000##000000
##D2D9781.001.5113.9413.94
#FFFFFF1.511.0021.0021.00
#00000013.9421.001.001.00
##00000013.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D170
Deuteranopia (green-blind)
#E6D47D
Tritanopia (blue-blind)
#DDCFC2
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d2d978;
/* rgb */ color: rgb(210, 217, 120);
/* oklch */ color: oklch(85.9% 0.121 112.3);
Tailwind
colors: {
  custom: {
    50: '#e1e4a1',
    500: '#d2d978',
    950: '#000000',
  },
}
SCSS
$custom: #d2d978;
$custom-light: #e1e4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d978",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 64.33,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.85914,
    "c": 0.12126,
    "h": 112.3
  },
  "luminance": 0.64683
}

Semantic roles & 50–950 ramp

primary
#D2D978
secondary
#514AAB
accent
#22C42E
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D978

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

Preview Lab → · Contrast checker → · Palette generator →

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