#B7A534#B7A534

#B7A534 is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.7% C 0.130 H 100.0°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#B7A534
RGBrgb(183, 165, 52)
HSLhsl(52, 56%, 46%)
HSVhsv(52, 72%, 72%)
CMYKcmyk(0%, 9.8%, 71.6%, 28.2%)
CIE-LABlab(67.45, -6.13, 57.85)
CIE-LCHlch(67.45, 58.18, 96.05°)
OKLaboklab(71.73% -0.0226 0.1285)
OKLCHoklch(71.73% 0.13 100)
XYZxyz(33.6050, 37.2270, 8.6636)
Luminance0.3723 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A534 #3446B7
analogous
#B76334 #B7A534 #87B734
triadic
#B7A534 #34B7A5 #A534B7
tetradic
#B7A534 #34B763 #3446B7 #B73487
square
#B7A534 #34B763 #3446B7 #B73487
split-complementary
#B7A534 #3487B7 #6334B7
monochromatic
#584F19 #877A26 #B7A534 #D0BF59 #DDD288

Accessibility & contrast

On white

2.49
#B7A534 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#B7A534 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A534
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A534#FFFFFF#000000##000000
##B7A5341.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A022
Deuteranopia (green-blind)
#BAA73B
Tritanopia (blue-blind)
#C5998F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b7a534;
/* rgb */ color: rgb(183, 165, 52);
/* oklch */ color: oklch(71.7% 0.130 100.0);
Tailwind
colors: {
  custom: {
    50: '#d0bf73',
    500: '#b7a534',
    950: '#000000',
  },
}
SCSS
$custom: #b7a534;
$custom-light: #d0bf73;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a534",
  "rgb": {
    "r": 183,
    "g": 165,
    "b": 52
  },
  "hsl": {
    "h": 51.756,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.71729,
    "c": 0.13048,
    "h": 100
  },
  "luminance": 0.37225
}

Semantic roles & 50–950 ramp

primary
#B7A534
secondary
#8089C7
accent
#5DDF49
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7A534

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

Preview Lab → · Contrast checker → · Palette generator →

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