#D7BA4F#D7BA4F

#D7BA4F is a light, vivid yellow. Relative luminance 0.501; OKLCH L 79.4% C 0.129 H 94.1°. Best body text is #000000 at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#D7BA4F
RGBrgb(215, 186, 79)
HSLhsl(47, 63%, 58%)
HSVhsv(47, 63%, 84%)
CMYKcmyk(0%, 13.5%, 63.3%, 15.7%)
CIE-LABlab(76.15, -1.82, 56.52)
CIE-LCHlch(76.15, 56.55, 91.84°)
OKLaboklab(79.38% -0.0091 0.1291)
OKLCHoklch(79.38% 0.129 94.1)
XYZxyz(46.9967, 50.1318, 14.5966)
Luminance0.5013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BA4F #4F6CD7
analogous
#D7764F #D7BA4F #B0D74F
triadic
#D7BA4F #4FD7BA #BA4FD7
tetradic
#D7BA4F #4FD776 #4F6CD7 #D74FB0
square
#D7BA4F #4FD776 #4F6CD7 #D74FB0
split-complementary
#D7BA4F #4FB0D7 #764FD7
monochromatic
#8C7520 #BE9E2B #D7BA4F #E2CE81 #EEE1B3

Accessibility & contrast

On white

1.90
#D7BA4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.03
#D7BA4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7BA4F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7BA4F#FFFFFF#000000##000000
##D7BA4F1.001.9011.0311.03
#FFFFFF1.901.0021.0021.00
#00000011.0321.001.001.00
##00000011.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB743
Deuteranopia (green-blind)
#D3C054
Tritanopia (blue-blind)
#E7ADA3
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d7ba4f;
/* rgb */ color: rgb(215, 186, 79);
/* oklch */ color: oklch(79.4% 0.129 94.1);
Tailwind
colors: {
  custom: {
    50: '#e7ce85',
    500: '#d7ba4f',
    950: '#000000',
  },
}
SCSS
$custom: #d7ba4f;
$custom-light: #e7ce85;
$custom-dark: #000000;
JSON
{
  "hex": "#d7ba4f",
  "rgb": {
    "r": 215,
    "g": 186,
    "b": 79
  },
  "hsl": {
    "h": 47.206,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.79384,
    "c": 0.12942,
    "h": 94.1
  },
  "luminance": 0.50129
}

Semantic roles & 50–950 ramp

primary
#D7BA4F
secondary
#394C92
accent
#65E642
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#16130B
muted
#85837E

Preview Lab

Preview with #D7BA4F

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

Preview Lab → · Contrast checker → · Palette generator →

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