#D2D87A#D2D87A

#D2D87A is a very light, moderate yellow. Relative luminance 0.642; OKLCH L 85.7% C 0.118 H 111.8°. Best body text is #000000 at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#D2D87A
RGBrgb(210, 216, 122)
HSLhsl(64, 55%, 66%)
HSVhsv(64, 44%, 85%)
CMYKcmyk(2.8%, 0%, 43.5%, 15.3%)
CIE-LABlab(84.08, -15.61, 45.48)
CIE-LCHlch(84.08, 48.09, 108.95°)
OKLaboklab(85.73% -0.0438 0.1095)
OKLCHoklch(85.73% 0.118 111.8)
XYZxyz(54.6478, 64.2194, 27.9254)
Luminance0.6422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D87A #807AD8
analogous
#D8AF7A #D2D87A #A3D87A
triadic
#D2D87A #7AD2D8 #D87AD2
tetradic
#D2D87A #7AD8AF #807AD8 #D87AA3
square
#D2D87A #7AD8AF #807AD8 #D87AA3
split-complementary
#D2D87A #7AA3D8 #AF7AD8
monochromatic
#9FA731 #C2CA4B #D2D87A #E2E6A9 #F2F4D9

Accessibility & contrast

On white

1.52
#D2D87A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.84
#D2D87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D87A
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D87A#FFFFFF#000000##000000
##D2D87A1.001.5213.8413.84
#FFFFFF1.521.0021.0021.00
#00000013.8421.001.001.00
##00000013.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D072
Deuteranopia (green-blind)
#E5D37F
Tritanopia (blue-blind)
#DDCEC2
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d2d87a;
/* rgb */ color: rgb(210, 216, 122);
/* oklch */ color: oklch(85.7% 0.118 111.8);
Tailwind
colors: {
  custom: {
    50: '#e1e4a2',
    500: '#d2d87a',
    950: '#000000',
  },
}
SCSS
$custom: #d2d87a;
$custom-light: #e1e4a2;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d87a",
  "rgb": {
    "r": 210,
    "g": 216,
    "b": 122
  },
  "hsl": {
    "h": 63.83,
    "s": 54.651,
    "l": 66.275
  },
  "oklch": {
    "l": 0.8573,
    "c": 0.11794,
    "h": 111.8
  },
  "luminance": 0.64219
}

Semantic roles & 50–950 ramp

primary
#D2D87A
secondary
#524CAA
accent
#23C22D
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D87A

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

Preview Lab → · Contrast checker → · Palette generator →

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