#D7BA4A#D7BA4A

#D7BA4A is a light, vivid yellow. Relative luminance 0.501; OKLCH L 79.3% C 0.133 H 94.6°. Best body text is #000000 at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#D7BA4A
RGBrgb(215, 186, 74)
HSLhsl(48, 64%, 57%)
HSVhsv(48, 66%, 84%)
CMYKcmyk(0%, 13.5%, 65.6%, 15.7%)
CIE-LABlab(76.11, -2.13, 58.65)
CIE-LCHlch(76.11, 58.69, 92.08°)
OKLaboklab(79.34% -0.0106 0.1329)
OKLCHoklch(79.34% 0.133 94.6)
XYZxyz(46.8215, 50.0617, 13.6739)
Luminance0.5006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BA4A #4A67D7
analogous
#D7744A #D7BA4A #ADD74A
triadic
#D7BA4A #4AD7BA #BA4AD7
tetradic
#D7BA4A #4AD774 #4A67D7 #D74AAD
square
#D7BA4A #4AD774 #4A67D7 #D74AAD
split-complementary
#D7BA4A #4AADD7 #744AD7
monochromatic
#88731E #BB9D29 #D7BA4A #E2CD7C #EDE0AE

Accessibility & contrast

On white

1.91
#D7BA4A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.01
#D7BA4A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7BA4A
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7BA4A#FFFFFF#000000##000000
##D7BA4A1.001.9111.0111.01
#FFFFFF1.911.0021.0021.00
#00000011.0121.001.001.00
##00000011.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB73C
Deuteranopia (green-blind)
#D4BF50
Tritanopia (blue-blind)
#E8ACA2
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d7ba4a;
/* rgb */ color: rgb(215, 186, 74);
/* oklch */ color: oklch(79.3% 0.133 94.6);
Tailwind
colors: {
  custom: {
    50: '#e7ce82',
    500: '#d7ba4a',
    950: '#000000',
  },
}
SCSS
$custom: #d7ba4a;
$custom-light: #e7ce82;
$custom-dark: #000000;
JSON
{
  "hex": "#d7ba4a",
  "rgb": {
    "r": 215,
    "g": 186,
    "b": 74
  },
  "hsl": {
    "h": 47.66,
    "s": 63.801,
    "l": 56.667
  },
  "oklch": {
    "l": 0.79336,
    "c": 0.13329,
    "h": 94.6
  },
  "luminance": 0.50059
}

Semantic roles & 50–950 ramp

primary
#D7BA4A
secondary
#37498F
accent
#63E741
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#16130B
muted
#85837E

Preview Lab

Preview with #D7BA4A

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

Preview Lab → · Contrast checker → · Palette generator →

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