#D7BC2E#D7BC2E

#D7BC2E is a light, vivid yellow. Relative luminance 0.506; OKLCH L 79.5% C 0.152 H 97.7°. Best body text is #000000 at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#D7BC2E
RGBrgb(215, 188, 46)
HSLhsl(50, 68%, 51%)
HSVhsv(50, 79%, 84%)
CMYKcmyk(0%, 12.6%, 78.6%, 15.7%)
CIE-LABlab(76.44, -4.48, 69.44)
CIE-LCHlch(76.44, 69.58, 93.69°)
OKLaboklab(79.55% -0.0203 0.1507)
OKLCHoklch(79.55% 0.152 97.7)
XYZxyz(46.5032, 50.6133, 9.9041)
Luminance0.5061 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BC2E #2E49D7
analogous
#D7672E #D7BC2E #9DD72E
triadic
#D7BC2E #2ED7BC #BC2ED7
tetradic
#D7BC2E #2ED767 #2E49D7 #D72E9D
square
#D7BC2E #2ED767 #2E49D7 #D72E9D
split-complementary
#D7BC2E #2E9DD7 #672ED7
monochromatic
#746516 #A89220 #D7BC2E #E1CC61 #EBDD95

Accessibility & contrast

On white

1.89
#D7BC2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.12
#D7BC2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7BC2E
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7BC2E#FFFFFF#000000##000000
##D7BC2E1.001.8911.1211.12
#FFFFFF1.891.0021.0021.00
#00000011.1221.001.001.00
##00000011.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB706
Deuteranopia (green-blind)
#D7C038
Tritanopia (blue-blind)
#E8ADA2
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #d7bc2e;
/* rgb */ color: rgb(215, 188, 46);
/* oklch */ color: oklch(79.5% 0.152 97.7);
Tailwind
colors: {
  custom: {
    50: '#e8cf73',
    500: '#d7bc2e',
    950: '#000000',
  },
}
SCSS
$custom: #d7bc2e;
$custom-light: #e8cf73;
$custom-dark: #000000;
JSON
{
  "hex": "#d7bc2e",
  "rgb": {
    "r": 215,
    "g": 188,
    "b": 46
  },
  "hsl": {
    "h": 50.414,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.79545,
    "c": 0.15204,
    "h": 97.7
  },
  "luminance": 0.50611
}

Semantic roles & 50–950 ramp

primary
#D7BC2E
secondary
#2C397D
accent
#59EB3D
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171309
muted
#85837D

Preview Lab

Preview with #D7BC2E

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

Preview Lab → · Contrast checker → · Palette generator →

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