#D7BC52#D7BC52

#D7BC52 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.8% C 0.128 H 95.0°. Best body text is #000000 at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#D7BC52
RGBrgb(215, 188, 82)
HSLhsl(48, 62%, 58%)
HSVhsv(48, 62%, 84%)
CMYKcmyk(0%, 12.6%, 61.9%, 15.7%)
CIE-LABlab(76.69, -2.67, 55.78)
CIE-LCHlch(76.69, 55.84, 92.74°)
OKLaboklab(79.82% -0.0112 0.128)
OKLCHoklch(79.82% 0.128 95)
XYZxyz(47.5326, 51.0250, 15.3261)
Luminance0.5102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7BC52 #526DD7
analogous
#D77A52 #D7BC52 #AFD752
triadic
#D7BC52 #52D7BC #BC52D7
tetradic
#D7BC52 #52D77A #526DD7 #D752AF
square
#D7BC52 #52D77A #526DD7 #D752AF
split-complementary
#D7BC52 #52AFD7 #7A52D7
monochromatic
#8E7821 #C0A22C #D7BC52 #E2CF84 #EEE3B5

Accessibility & contrast

On white

1.87
#D7BC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.20
#D7BC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7BC52
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7BC52#FFFFFF#000000##000000
##D7BC521.001.8711.2011.20
#FFFFFF1.871.0021.0021.00
#00000011.2021.001.001.00
##00000011.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB846
Deuteranopia (green-blind)
#D5C157
Tritanopia (blue-blind)
#E7AFA5
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #d7bc52;
/* rgb */ color: rgb(215, 188, 82);
/* oklch */ color: oklch(79.8% 0.128 95.0);
Tailwind
colors: {
  custom: {
    50: '#e6cf87',
    500: '#d7bc52',
    950: '#000000',
  },
}
SCSS
$custom: #d7bc52;
$custom-light: #e6cf87;
$custom-dark: #000000;
JSON
{
  "hex": "#d7bc52",
  "rgb": {
    "r": 215,
    "g": 188,
    "b": 82
  },
  "hsl": {
    "h": 47.82,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.79823,
    "c": 0.12844,
    "h": 95
  },
  "luminance": 0.51023
}

Semantic roles & 50–950 ramp

primary
#D7BC52
secondary
#3A4C93
accent
#63E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16130B
muted
#85837E

Preview Lab

Preview with #D7BC52

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

Preview Lab → · Contrast checker → · Palette generator →

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