#D7D851#D7D851

#D7D851 is a very light, vivid yellow. Relative luminance 0.642; OKLCH L 85.7% C 0.155 H 109.7°. Best body text is #000000 at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#D7D851
RGBrgb(215, 216, 81)
HSLhsl(60, 63%, 58%)
HSVhsv(60, 63%, 85%)
CMYKcmyk(0.5%, 0%, 62.5%, 15.3%)
CIE-LABlab(84.05, -16.95, 64.13)
CIE-LCHlch(84.05, 66.33, 104.80°)
OKLaboklab(85.66% -0.052 0.1455)
OKLCHoklch(85.66% 0.155 109.7)
XYZxyz(54.0671, 64.1544, 17.3179)
Luminance0.6415 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D851 #5251D8
analogous
#D89551 #D7D851 #94D851
triadic
#D7D851 #51D7D8 #D851D7
tetradic
#D7D851 #51D895 #5251D8 #D85194
square
#D7D851 #51D895 #5251D8 #D85194
split-complementary
#D7D851 #5194D8 #9551D8
monochromatic
#8E8F20 #C0C12B #D7D851 #E2E383 #EEEEB5

Accessibility & contrast

On white

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

On black

13.83
#D7D851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D851
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D851#FFFFFF#000000##000000
##D7D8511.001.5213.8313.83
#FFFFFF1.521.0021.0021.00
#00000013.8321.001.001.00
##00000013.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CF40
Deuteranopia (green-blind)
#EAD45A
Tritanopia (blue-blind)
#E5CBBC
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d7d851;
/* rgb */ color: rgb(215, 216, 81);
/* oklch */ color: oklch(85.7% 0.155 109.7);
Tailwind
colors: {
  custom: {
    50: '#e6e388',
    500: '#d7d851',
    950: '#000000',
  },
}
SCSS
$custom: #d7d851;
$custom-light: #e6e388;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d851",
  "rgb": {
    "r": 215,
    "g": 216,
    "b": 81
  },
  "hsl": {
    "h": 60.444,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.85662,
    "c": 0.15453,
    "h": 109.7
  },
  "luminance": 0.64153
}

Semantic roles & 50–950 ramp

primary
#D7D851
secondary
#3A3994
accent
#41E643
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D7D851

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

Preview Lab → · Contrast checker → · Palette generator →

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