#D2C879#D2C879

#D2C879 is a very light, moderate yellow. Relative luminance 0.564; OKLCH L 82.4% C 0.101 H 102.0°. Best body text is #000000 at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#D2C879
RGBrgb(210, 200, 121)
HSLhsl(53, 50%, 65%)
HSVhsv(53, 42%, 82%)
CMYKcmyk(0%, 4.8%, 42.4%, 17.6%)
CIE-LABlab(79.84, -7.63, 40.68)
CIE-LCHlch(79.84, 41.39, 100.62°)
OKLaboklab(82.35% -0.021 0.0987)
OKLCHoklch(82.35% 0.101 102)
XYZxyz(50.6849, 56.3921, 26.3003)
Luminance0.5639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C879 #7983D2
analogous
#D29B79 #D2C879 #B0D279
triadic
#D2C879 #79D2C8 #C879D2
tetradic
#D2C879 #79D29B #7983D2 #D279B0
square
#D2C879 #79D29B #7983D2 #D279B0
split-complementary
#D2C879 #79B0D2 #9B79D2
monochromatic
#9C9134 #C3B54B #D2C879 #E1DBA7 #F1EED5

Accessibility & contrast

On white

1.71
#D2C879 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.28
#D2C879 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C879
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C879#FFFFFF#000000##000000
##D2C8791.001.7112.2812.28
#FFFFFF1.711.0021.0021.00
#00000012.2821.001.001.00
##00000012.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C373
Deuteranopia (green-blind)
#D8C87C
Tritanopia (blue-blind)
#DEBEB5
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d2c879;
/* rgb */ color: rgb(210, 200, 121);
/* oklch */ color: oklch(82.4% 0.101 102.0);
Tailwind
colors: {
  custom: {
    50: '#e1d8a1',
    500: '#d2c879',
    950: '#000000',
  },
}
SCSS
$custom: #d2c879;
$custom-light: #e1d8a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c879",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 121
  },
  "hsl": {
    "h": 53.258,
    "s": 49.721,
    "l": 64.902
  },
  "oklch": {
    "l": 0.82353,
    "c": 0.10087,
    "h": 102
  },
  "luminance": 0.56391
}

Semantic roles & 50–950 ramp

primary
#D2C879
secondary
#4E57A1
accent
#39BD28
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #D2C879

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

Preview Lab → · Contrast checker → · Palette generator →

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