#D7B951#D7B951

#D7B951 is a light, vivid yellow. Relative luminance 0.497; OKLCH L 79.2% C 0.127 H 93.2°. Best body text is #000000 at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#D7B951
RGBrgb(215, 185, 81)
HSLhsl(47, 63%, 58%)
HSVhsv(47, 62%, 84%)
CMYKcmyk(0%, 14%, 62.3%, 15.7%)
CIE-LABlab(75.91, -1.17, 55.37)
CIE-LCHlch(75.91, 55.38, 91.21°)
OKLaboklab(79.2% -0.007 0.1269)
OKLCHoklch(79.2% 0.127 93.2)
XYZxyz(46.8607, 49.7415, 14.9158)
Luminance0.4974 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7B951 #516FD7
analogous
#D77651 #D7B951 #B2D751
triadic
#D7B951 #51D7B9 #B951D7
tetradic
#D7B951 #51D776 #516FD7 #D751B2
square
#D7B951 #51D776 #516FD7 #D751B2
split-complementary
#D7B951 #51B2D7 #7651D7
monochromatic
#8D7520 #BF9E2C #D7B951 #E2CD83 #EEE1B5

Accessibility & contrast

On white

1.92
#D7B951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.95
#D7B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7B951
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7B951#FFFFFF#000000##000000
##D7B9511.001.9210.9510.95
#FFFFFF1.921.0021.0021.00
#00000010.9521.001.001.00
##00000010.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB646
Deuteranopia (green-blind)
#D3BF56
Tritanopia (blue-blind)
#E7ACA2
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d7b951;
/* rgb */ color: rgb(215, 185, 81);
/* oklch */ color: oklch(79.2% 0.127 93.2);
Tailwind
colors: {
  custom: {
    50: '#e7cd86',
    500: '#d7b951',
    950: '#000000',
  },
}
SCSS
$custom: #d7b951;
$custom-light: #e7cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#d7b951",
  "rgb": {
    "r": 215,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 46.567,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.792,
    "c": 0.12711,
    "h": 93.2
  },
  "luminance": 0.49739
}

Semantic roles & 50–950 ramp

primary
#D7B951
secondary
#A7B3DD
accent
#67E642
background
#FEFCF8
surface
#FDF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D7B951

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

Preview Lab → · Contrast checker → · Palette generator →

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