#D2D87F#D2D87F

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

Color values

HEX#D2D87F
RGBrgb(210, 216, 127)
HSLhsl(64, 53%, 67%)
HSVhsv(64, 41%, 85%)
CMYKcmyk(2.8%, 0%, 41.2%, 15.3%)
CIE-LABlab(84.15, -15.09, 43.11)
CIE-LCHlch(84.15, 45.67, 109.30°)
OKLaboklab(85.8% -0.042 0.1045)
OKLCHoklch(85.8% 0.113 111.9)
XYZxyz(54.9656, 64.3466, 29.5991)
Luminance0.6435 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D87F #857FD8
analogous
#D8B27F #D2D87F #A6D87F
triadic
#D2D87F #7FD2D8 #D87FD2
tetradic
#D2D87F #7FD8B2 #857FD8 #D87FA6
square
#D2D87F #7FD8B2 #857FD8 #D87FA6
split-complementary
#D2D87F #7FA6D8 #B27FD8
monochromatic
#A1A934 #C2CA50 #D2D87F #E2E6AE #F3F5DD

Accessibility & contrast

On white

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

On black

13.87
#D2D87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D87F
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D87F#FFFFFF#000000##000000
##D2D87F1.001.5113.8713.87
#FFFFFF1.511.0021.0021.00
#00000013.8721.001.001.00
##00000013.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D178
Deuteranopia (green-blind)
#E4D383
Tritanopia (blue-blind)
#DCCEC2
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d2d87f;
/* rgb */ color: rgb(210, 216, 127);
/* oklch */ color: oklch(85.8% 0.113 111.9);
Tailwind
colors: {
  custom: {
    50: '#e1e4a5',
    500: '#d2d87f',
    950: '#000000',
  },
}
SCSS
$custom: #d2d87f;
$custom-light: #e1e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d87f",
  "rgb": {
    "r": 210,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 64.045,
    "s": 53.293,
    "l": 67.255
  },
  "oklch": {
    "l": 0.85804,
    "c": 0.11257,
    "h": 111.9
  },
  "luminance": 0.64346
}

Semantic roles & 50–950 ramp

primary
#D2D87F
secondary
#554FAC
accent
#25C12F
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D87F

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

Preview Lab → · Contrast checker → · Palette generator →

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