#D7B545#D7B545

#D7B545 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 78.3% C 0.134 H 91.9°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#D7B545
RGBrgb(215, 181, 69)
HSLhsl(46, 65%, 56%)
HSVhsv(46, 68%, 84%)
CMYKcmyk(0%, 15.8%, 67.9%, 15.7%)
CIE-LABlab(74.78, 0.20, 59.37)
CIE-LCHlch(74.78, 59.37, 89.80°)
OKLaboklab(78.27% -0.0045 0.1336)
OKLCHoklch(78.27% 0.134 91.9)
XYZxyz(45.6247, 47.9271, 12.4768)
Luminance0.4792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7B545 #4567D7
analogous
#D76C45 #D7B545 #B0D745
triadic
#D7B545 #45D7B5 #B545D7
tetradic
#D7B545 #45D76C #4567D7 #D745B0
square
#D7B545 #45D76C #4567D7 #D745B0
split-complementary
#D7B545 #45B0D7 #6C45D7
monochromatic
#856D1D #B79627 #D7B545 #E2C977 #EDDDAA

Accessibility & contrast

On white

1.98
#D7B545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.58
#D7B545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7B545
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7B545#FFFFFF#000000##000000
##D7B5451.001.9810.5810.58
#FFFFFF1.981.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B237
Deuteranopia (green-blind)
#D0BC4B
Tritanopia (blue-blind)
#E8A79E
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #d7b545;
/* rgb */ color: rgb(215, 181, 69);
/* oklch */ color: oklch(78.3% 0.134 91.9);
Tailwind
colors: {
  custom: {
    50: '#e7ca7e',
    500: '#d7b545',
    950: '#000000',
  },
}
SCSS
$custom: #d7b545;
$custom-light: #e7ca7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d7b545",
  "rgb": {
    "r": 215,
    "g": 181,
    "b": 69
  },
  "hsl": {
    "h": 46.027,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.78274,
    "c": 0.13367,
    "h": 91.9
  },
  "luminance": 0.47924
}

Semantic roles & 50–950 ramp

primary
#D7B545
secondary
#9EACDA
accent
#67E840
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D7B545

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

Preview Lab → · Contrast checker → · Palette generator →

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