#D2D579#D2D579

#D2D579 is a very light, moderate yellow. Relative luminance 0.627; OKLCH L 85.1% C 0.115 H 110.3°. Best body text is #000000 at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#D2D579
RGBrgb(210, 213, 121)
HSLhsl(62, 52%, 65%)
HSVhsv(62, 43%, 84%)
CMYKcmyk(1.4%, 0%, 43.2%, 16.5%)
CIE-LABlab(83.27, -14.22, 44.97)
CIE-LCHlch(83.27, 47.16, 107.55°)
OKLaboklab(85.08% -0.0399 0.1083)
OKLCHoklch(85.08% 0.115 110.3)
XYZxyz(53.8246, 62.6717, 27.3469)
Luminance0.6267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D579 #7C79D5
analogous
#D5AA79 #D2D579 #A4D579
triadic
#D2D579 #79D2D5 #D579D2
tetradic
#D2D579 #79D5AA #7C79D5 #D579A4
square
#D2D579 #79D5AA #7C79D5 #D579A4
split-complementary
#D2D579 #79A4D5 #AA79D5
monochromatic
#9DA132 #C2C64A #D2D579 #E2E4A8 #F1F2D6

Accessibility & contrast

On white

1.55
#D2D579 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.53
#D2D579 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D579
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D579#FFFFFF#000000##000000
##D2D5791.001.5513.5313.53
#FFFFFF1.551.0021.0021.00
#00000013.5321.001.001.00
##00000013.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CE71
Deuteranopia (green-blind)
#E3D17D
Tritanopia (blue-blind)
#DDCBBF
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d2d579;
/* rgb */ color: rgb(210, 213, 121);
/* oklch */ color: oklch(85.1% 0.115 110.3);
Tailwind
colors: {
  custom: {
    50: '#e1e1a1',
    500: '#d2d579',
    950: '#000000',
  },
}
SCSS
$custom: #d2d579;
$custom-light: #e1e1a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d579",
  "rgb": {
    "r": 210,
    "g": 213,
    "b": 121
  },
  "hsl": {
    "h": 61.957,
    "s": 52.273,
    "l": 65.49
  },
  "oklch": {
    "l": 0.8508,
    "c": 0.11541,
    "h": 110.3
  },
  "luminance": 0.62671
}

Semantic roles & 50–950 ramp

primary
#D2D579
secondary
#504DA5
accent
#26C02B
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D579

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

Preview Lab → · Contrast checker → · Palette generator →

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