#D7D951#D7D951

#D7D951 is a very light, vivid yellow. Relative luminance 0.647; OKLCH L 85.9% C 0.156 H 110.1°. Best body text is #000000 at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#D7D951
RGBrgb(215, 217, 81)
HSLhsl(61, 64%, 58%)
HSVhsv(61, 63%, 85%)
CMYKcmyk(0.9%, 0%, 62.7%, 14.9%)
CIE-LABlab(84.31, -17.44, 64.41)
CIE-LCHlch(84.31, 66.73, 105.15°)
OKLaboklab(85.88% -0.0534 0.1461)
OKLCHoklch(85.88% 0.156 110.1)
XYZxyz(54.3240, 64.6683, 17.4036)
Luminance0.6467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D951 #5351D9
analogous
#D99751 #D7D951 #93D951
triadic
#D7D951 #51D7D9 #D951D7
tetradic
#D7D951 #51D997 #5351D9 #D95193
square
#D7D951 #51D997 #5351D9 #D95193
split-complementary
#D7D951 #5193D9 #9751D9
monochromatic
#8E901F #C0C22A #D7D951 #E3E483 #EEEFB5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7D951#FFFFFF#000000##000000
##D7D9511.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)
#E9D040
Deuteranopia (green-blind)
#EBD45A
Tritanopia (blue-blind)
#E5CCBD
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d7d951;
/* rgb */ color: rgb(215, 217, 81);
/* oklch */ color: oklch(85.9% 0.156 110.1);
Tailwind
colors: {
  custom: {
    50: '#e6e488',
    500: '#d7d951',
    950: '#000000',
  },
}
SCSS
$custom: #d7d951;
$custom-light: #e6e488;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d951",
  "rgb": {
    "r": 215,
    "g": 217,
    "b": 81
  },
  "hsl": {
    "h": 60.882,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85875,
    "c": 0.15556,
    "h": 110.1
  },
  "luminance": 0.64667
}

Semantic roles & 50–950 ramp

primary
#D7D951
secondary
#3A3995
accent
#41E743
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D7D951

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

Preview Lab → · Contrast checker → · Palette generator →

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