#D7B845#D7B845

#D7B845 is a light, vivid yellow. Relative luminance 0.492; OKLCH L 78.9% C 0.136 H 93.8°. Best body text is #000000 at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#D7B845
RGBrgb(215, 184, 69)
HSLhsl(47, 65%, 56%)
HSVhsv(47, 68%, 84%)
CMYKcmyk(0%, 14.4%, 67.9%, 15.7%)
CIE-LABlab(75.55, -1.37, 60.17)
CIE-LCHlch(75.55, 60.19, 91.30°)
OKLaboklab(78.88% -0.009 0.1353)
OKLCHoklch(78.88% 0.136 93.8)
XYZxyz(46.2413, 49.1602, 12.6823)
Luminance0.4916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7B845 #4564D7
analogous
#D76F45 #D7B845 #ADD745
triadic
#D7B845 #45D7B8 #B845D7
tetradic
#D7B845 #45D76F #4564D7 #D745AD
square
#D7B845 #45D76F #4564D7 #D745AD
split-complementary
#D7B845 #45ADD7 #6F45D7
monochromatic
#856F1D #B79927 #D7B845 #E2CB77 #EDDEAA

Accessibility & contrast

On white

1.94
#D7B845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.83
#D7B845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7B845
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7B845#FFFFFF#000000##000000
##D7B8451.001.9410.8310.83
#FFFFFF1.941.0021.0021.00
#00000010.8321.001.001.00
##00000010.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB536
Deuteranopia (green-blind)
#D3BE4B
Tritanopia (blue-blind)
#E8AAA0
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d7b845;
/* rgb */ color: rgb(215, 184, 69);
/* oklch */ color: oklch(78.9% 0.136 93.8);
Tailwind
colors: {
  custom: {
    50: '#e7cd7f',
    500: '#d7b845',
    950: '#000000',
  },
}
SCSS
$custom: #d7b845;
$custom-light: #e7cd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d7b845",
  "rgb": {
    "r": 215,
    "g": 184,
    "b": 69
  },
  "hsl": {
    "h": 47.26,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.78884,
    "c": 0.13558,
    "h": 93.8
  },
  "luminance": 0.49158
}

Semantic roles & 50–950 ramp

primary
#D7B845
secondary
#9EAADA
accent
#64E840
background
#FEFCF8
surface
#FDF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #D7B845

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

Preview Lab → · Contrast checker → · Palette generator →

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