#D7D87F#D7D87F

#D7D87F is a very light, moderate yellow. Relative luminance 0.651; OKLCH L 86.2% C 0.112 H 109.1°. Best body text is #000000 at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#D7D87F
RGBrgb(215, 216, 127)
HSLhsl(61, 53%, 67%)
HSVhsv(61, 41%, 85%)
CMYKcmyk(0.5%, 0%, 41.2%, 15.3%)
CIE-LABlab(84.53, -13.13, 43.67)
CIE-LCHlch(84.53, 45.60, 106.74°)
OKLaboklab(86.21% -0.0366 0.1057)
OKLCHoklch(86.21% 0.112 109.1)
XYZxyz(56.4118, 65.0923, 29.6669)
Luminance0.6509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D87F #807FD8
analogous
#D8AD7F #D7D87F #ABD87F
triadic
#D7D87F #7FD7D8 #D87FD7
tetradic
#D7D87F #7FD8AD #807FD8 #D87FAB
square
#D7D87F #7FD8AD #807FD8 #D87FAB
split-complementary
#D7D87F #7FABD8 #AD7FD8
monochromatic
#A8A934 #C8CA50 #D7D87F #E6E6AE #F4F5DD

Accessibility & contrast

On white

1.50
#D7D87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.02
#D7D87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D87F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D87F#FFFFFF#000000##000000
##D7D87F1.001.5014.0214.02
#FFFFFF1.501.0021.0021.00
#00000014.0221.001.001.00
##00000014.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D178
Deuteranopia (green-blind)
#E6D583
Tritanopia (blue-blind)
#E2CEC2
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d7d87f;
/* rgb */ color: rgb(215, 216, 127);
/* oklch */ color: oklch(86.2% 0.112 109.1);
Tailwind
colors: {
  custom: {
    50: '#e5e3a5',
    500: '#d7d87f',
    950: '#000000',
  },
}
SCSS
$custom: #d7d87f;
$custom-light: #e5e3a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d87f",
  "rgb": {
    "r": 215,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 60.674,
    "s": 53.293,
    "l": 67.255
  },
  "oklch": {
    "l": 0.86206,
    "c": 0.11184,
    "h": 109.1
  },
  "luminance": 0.65091
}

Semantic roles & 50–950 ramp

primary
#D7D87F
secondary
#504FAC
accent
#25C127
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D7D87F

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

Preview Lab → · Contrast checker → · Palette generator →

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