#D7BA4C#D7BA4C

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

Color values

HEX#D7BA4C
RGBrgb(215, 186, 76)
HSLhsl(47, 63%, 57%)
HSVhsv(47, 65%, 84%)
CMYKcmyk(0%, 13.5%, 64.7%, 15.7%)
CIE-LABlab(76.12, -2.01, 57.81)
CIE-LCHlch(76.12, 57.84, 91.99°)
OKLaboklab(79.36% -0.01 0.1314)
OKLCHoklch(79.36% 0.132 94.4)
XYZxyz(46.8900, 50.0891, 14.0344)
Luminance0.5009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BA4C #4C69D7
analogous
#D7754C #D7BA4C #AFD74C
triadic
#D7BA4C #4CD7BA #BA4CD7
tetradic
#D7BA4C #4CD775 #4C69D7 #D74CAF
square
#D7BA4C #4CD775 #4C69D7 #D74CAF
split-complementary
#D7BA4C #4CAFD7 #754CD7
monochromatic
#8A731F #BC9D2A #D7BA4C #E2CD7E #EDE1B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7BA4C#FFFFFF#000000##000000
##D7BA4C1.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)
#CCB73F
Deuteranopia (green-blind)
#D4BF51
Tritanopia (blue-blind)
#E7ACA3
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #d7ba4c;
/* rgb */ color: rgb(215, 186, 76);
/* oklch */ color: oklch(79.4% 0.132 94.4);
Tailwind
colors: {
  custom: {
    50: '#e7ce83',
    500: '#d7ba4c',
    950: '#000000',
  },
}
SCSS
$custom: #d7ba4c;
$custom-light: #e7ce83;
$custom-dark: #000000;
JSON
{
  "hex": "#d7ba4c",
  "rgb": {
    "r": 215,
    "g": 186,
    "b": 76
  },
  "hsl": {
    "h": 47.482,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.79355,
    "c": 0.13177,
    "h": 94.4
  },
  "luminance": 0.50087
}

Semantic roles & 50–950 ramp

primary
#D7BA4C
secondary
#374A90
accent
#64E641
background
#FFFEFB
surface
#FEFAF2
border
#D6D3CC
text
#16130B
muted
#85837E

Preview Lab

Preview with #D7BA4C

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

Preview Lab → · Contrast checker → · Palette generator →

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