#D7BA4E#D7BA4E

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

Color values

HEX#D7BA4E
RGBrgb(215, 186, 78)
HSLhsl(47, 63%, 57%)
HSVhsv(47, 64%, 84%)
CMYKcmyk(0%, 13.5%, 63.7%, 15.7%)
CIE-LABlab(76.14, -1.88, 56.95)
CIE-LCHlch(76.14, 56.98, 91.89°)
OKLaboklab(79.37% -0.0094 0.1299)
OKLCHoklch(79.37% 0.13 94.2)
XYZxyz(46.9606, 50.1174, 14.4063)
Luminance0.5011 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BA4E #4E6BD7
analogous
#D7754E #D7BA4E #B0D74E
triadic
#D7BA4E #4ED7BA #BA4ED7
tetradic
#D7BA4E #4ED775 #4E6BD7 #D74EB0
square
#D7BA4E #4ED775 #4E6BD7 #D74EB0
split-complementary
#D7BA4E #4EB0D7 #754ED7
monochromatic
#8B741F #BD9E2B #D7BA4E #E2CD80 #EEE1B2

Accessibility & contrast

On white

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

On black

11.02
#D7BA4E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7BA4E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7BA4E#FFFFFF#000000##000000
##D7BA4E1.001.9111.0211.02
#FFFFFF1.911.0021.0021.00
#00000011.0221.001.001.00
##00000011.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB742
Deuteranopia (green-blind)
#D3C053
Tritanopia (blue-blind)
#E7ACA3
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d7ba4e;
/* rgb */ color: rgb(215, 186, 78);
/* oklch */ color: oklch(79.4% 0.130 94.2);
Tailwind
colors: {
  custom: {
    50: '#e7ce84',
    500: '#d7ba4e',
    950: '#000000',
  },
}
SCSS
$custom: #d7ba4e;
$custom-light: #e7ce84;
$custom-dark: #000000;
JSON
{
  "hex": "#d7ba4e",
  "rgb": {
    "r": 215,
    "g": 186,
    "b": 78
  },
  "hsl": {
    "h": 47.299,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.79374,
    "c": 0.13021,
    "h": 94.2
  },
  "luminance": 0.50115
}

Semantic roles & 50–950 ramp

primary
#D7BA4E
secondary
#384B91
accent
#64E642
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#16130B
muted
#85837E

Preview Lab

Preview with #D7BA4E

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

Preview Lab → · Contrast checker → · Palette generator →

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