#D2D87D#D2D87D

#D2D87D is a very light, moderate yellow. Relative luminance 0.643; OKLCH L 85.8% C 0.115 H 111.9°. Best body text is #000000 at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#D2D87D
RGBrgb(210, 216, 125)
HSLhsl(64, 54%, 67%)
HSVhsv(64, 42%, 85%)
CMYKcmyk(2.8%, 0%, 42.1%, 15.3%)
CIE-LABlab(84.12, -15.30, 44.06)
CIE-LCHlch(84.12, 46.64, 109.16°)
OKLaboklab(85.77% -0.0427 0.1065)
OKLCHoklch(85.77% 0.115 111.9)
XYZxyz(54.8366, 64.2949, 28.9195)
Luminance0.6429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D87D #837DD8
analogous
#D8B17D #D2D87D #A5D87D
triadic
#D2D87D #7DD2D8 #D87DD2
tetradic
#D2D87D #7DD8B1 #837DD8 #D87DA5
square
#D2D87D #7DD8B1 #837DD8 #D87DA5
split-complementary
#D2D87D #7DA5D8 #B17DD8
monochromatic
#A0A832 #C2CA4E #D2D87D #E2E6AC #F3F4DB

Accessibility & contrast

On white

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

On black

13.86
#D2D87D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D87D
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D87D#FFFFFF#000000##000000
##D2D87D1.001.5213.8613.86
#FFFFFF1.521.0021.0021.00
#00000013.8621.001.001.00
##00000013.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d87d;
/* rgb */ color: rgb(210, 216, 125);
/* oklch */ color: oklch(85.8% 0.115 111.9);
Tailwind
colors: {
  custom: {
    50: '#e1e4a4',
    500: '#d2d87d',
    950: '#000000',
  },
}
SCSS
$custom: #d2d87d;
$custom-light: #e1e4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d87d",
  "rgb": {
    "r": 210,
    "g": 216,
    "b": 125
  },
  "hsl": {
    "h": 63.956,
    "s": 53.846,
    "l": 66.863
  },
  "oklch": {
    "l": 0.85774,
    "c": 0.11474,
    "h": 111.9
  },
  "luminance": 0.64294
}

Semantic roles & 50–950 ramp

primary
#D2D87D
secondary
#544EAC
accent
#24C12F
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D87D

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

Preview Lab → · Contrast checker → · Palette generator →

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