#D4D87F#D4D87F

#D4D87F is a very light, moderate yellow. Relative luminance 0.646; OKLCH L 86.0% C 0.112 H 110.8°. Best body text is #000000 at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#D4D87F
RGBrgb(212, 216, 127)
HSLhsl(63, 53%, 67%)
HSVhsv(63, 41%, 85%)
CMYKcmyk(1.9%, 0%, 41.2%, 15.3%)
CIE-LABlab(84.30, -14.31, 43.33)
CIE-LCHlch(84.30, 45.63, 108.28°)
OKLaboklab(85.96% -0.0398 0.105)
OKLCHoklch(85.96% 0.112 110.8)
XYZxyz(55.5388, 64.6421, 29.6260)
Luminance0.6464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D87F #837FD8
analogous
#D8B07F #D4D87F #A7D87F
triadic
#D4D87F #7FD4D8 #D87FD4
tetradic
#D4D87F #7FD8B0 #837FD8 #D87FA7
square
#D4D87F #7FD8B0 #837FD8 #D87FA7
split-complementary
#D4D87F #7FA7D8 #B07FD8
monochromatic
#A4A934 #C4CA50 #D4D87F #E4E6AE #F4F5DD

Accessibility & contrast

On white

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

On black

13.93
#D4D87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D87F
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D87F#FFFFFF#000000##000000
##D4D87F1.001.5113.9313.93
#FFFFFF1.511.0021.0021.00
#00000013.9321.001.001.00
##00000013.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4d87f;
/* rgb */ color: rgb(212, 216, 127);
/* oklch */ color: oklch(86.0% 0.112 110.8);
Tailwind
colors: {
  custom: {
    50: '#e2e4a5',
    500: '#d4d87f',
    950: '#000000',
  },
}
SCSS
$custom: #d4d87f;
$custom-light: #e2e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d87f",
  "rgb": {
    "r": 212,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 62.697,
    "s": 53.293,
    "l": 67.255
  },
  "oklch": {
    "l": 0.85964,
    "c": 0.11225,
    "h": 110.8
  },
  "luminance": 0.64641
}

Semantic roles & 50–950 ramp

primary
#D4D87F
secondary
#534FAC
accent
#25C12C
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D4D87F

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

Preview Lab → · Contrast checker → · Palette generator →

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