#D7BF5B#D7BF5B

#D7BF5B is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.5% C 0.123 H 96.0°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#D7BF5B
RGBrgb(215, 191, 91)
HSLhsl(48, 61%, 60%)
HSVhsv(48, 58%, 84%)
CMYKcmyk(0%, 11.2%, 57.7%, 15.7%)
CIE-LABlab(77.56, -3.60, 52.64)
CIE-LCHlch(77.56, 52.76, 93.91°)
OKLaboklab(80.54% -0.0128 0.1224)
OKLCHoklch(80.54% 0.123 96)
XYZxyz(48.5454, 52.4662, 17.4654)
Luminance0.5246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BF5B #5B73D7
analogous
#D7815B #D7BF5B #B1D75B
triadic
#D7BF5B #5BD7BF #BF5BD7
tetradic
#D7BF5B #5BD781 #5B73D7 #D75BB1
square
#D7BF5B #5BD781 #5B73D7 #D75BB1
split-complementary
#D7BF5B #5BB1D7 #815BD7
monochromatic
#947E24 #C5A830 #D7BF5B #E3D28C #EFE5BD

Accessibility & contrast

On white

1.83
#D7BF5B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#D7BF5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7BF5B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7BF5B#FFFFFF#000000##000000
##D7BF5B1.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB51
Deuteranopia (green-blind)
#D6C360
Tritanopia (blue-blind)
#E6B2A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d7bf5b;
/* rgb */ color: rgb(215, 191, 91);
/* oklch */ color: oklch(80.5% 0.123 96.0);
Tailwind
colors: {
  custom: {
    50: '#e6d28c',
    500: '#d7bf5b',
    950: '#000000',
  },
}
SCSS
$custom: #d7bf5b;
$custom-light: #e6d28c;
$custom-dark: #000000;
JSON
{
  "hex": "#d7bf5b",
  "rgb": {
    "r": 215,
    "g": 191,
    "b": 91
  },
  "hsl": {
    "h": 48.387,
    "s": 60.784,
    "l": 60
  },
  "oklch": {
    "l": 0.80535,
    "c": 0.12303,
    "h": 96
  },
  "luminance": 0.52464
}

Semantic roles & 50–950 ramp

primary
#D7BF5B
secondary
#3E4F99
accent
#63E444
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7BF5B

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

Preview Lab → · Contrast checker → · Palette generator →

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