#D7D862#D7D862

#D7D862 is a very light, vivid yellow. Relative luminance 0.644; OKLCH L 85.8% C 0.141 H 109.5°. Best body text is #000000 at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#D7D862
RGBrgb(215, 216, 98)
HSLhsl(61, 60%, 62%)
HSVhsv(61, 55%, 85%)
CMYKcmyk(0.5%, 0%, 54.6%, 15.3%)
CIE-LABlab(84.20, -15.76, 57.00)
CIE-LCHlch(84.20, 59.14, 105.46°)
OKLaboklab(85.83% -0.0469 0.1325)
OKLCHoklch(85.83% 0.141 109.5)
XYZxyz(54.7862, 64.4420, 21.1055)
Luminance0.6444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D862 #6362D8
analogous
#D89E62 #D7D862 #9CD862
triadic
#D7D862 #62D7D8 #D862D7
tetradic
#D7D862 #62D89E #6362D8 #D8629C
square
#D7D862 #62D89E #6362D8 #D8629C
split-complementary
#D7D862 #629CD8 #9E62D8
monochromatic
#999926 #C9CA32 #D7D862 #E3E493 #F0F0C4

Accessibility & contrast

On white

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

On black

13.89
#D7D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D862
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D862#FFFFFF#000000##000000
##D7D8621.001.5113.8913.89
#FFFFFF1.511.0021.0021.00
#00000013.8921.001.001.00
##00000013.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D056
Deuteranopia (green-blind)
#E9D468
Tritanopia (blue-blind)
#E4CCBE
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d7d862;
/* rgb */ color: rgb(215, 216, 98);
/* oklch */ color: oklch(85.8% 0.141 109.5);
Tailwind
colors: {
  custom: {
    50: '#e6e392',
    500: '#d7d862',
    950: '#000000',
  },
}
SCSS
$custom: #d7d862;
$custom-light: #e6e392;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d862",
  "rgb": {
    "r": 215,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 60.508,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.85829,
    "c": 0.14057,
    "h": 109.5
  },
  "luminance": 0.64441
}

Semantic roles & 50–950 ramp

primary
#D7D862
secondary
#41409E
accent
#1EC81F
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D7D862

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

Preview Lab → · Contrast checker → · Palette generator →

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