#B7A531#B7A531

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

Color values

HEX#B7A531
RGBrgb(183, 165, 49)
HSLhsl(52, 58%, 45%)
HSVhsv(52, 73%, 72%)
CMYKcmyk(0%, 9.8%, 73.2%, 28.2%)
CIE-LABlab(67.43, -6.27, 58.97)
CIE-LCHlch(67.43, 59.31, 96.07°)
OKLaboklab(71.71% -0.0234 0.1303)
OKLCHoklch(71.71% 0.132 100.2)
XYZxyz(33.5395, 37.2009, 8.3190)
Luminance0.3720 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A531 #3143B7
analogous
#B76231 #B7A531 #86B731
triadic
#B7A531 #31B7A5 #A531B7
tetradic
#B7A531 #31B762 #3143B7 #B73186
square
#B7A531 #31B762 #3143B7 #B73186
split-complementary
#B7A531 #3186B7 #6231B7
monochromatic
#564E17 #877924 #B7A531 #D1C054 #DED284

Accessibility & contrast

On white

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

On black

8.44
#B7A531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A531
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A531#FFFFFF#000000##000000
##B7A5311.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A01D
Deuteranopia (green-blind)
#BAA739
Tritanopia (blue-blind)
#C5998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b7a531;
/* rgb */ color: rgb(183, 165, 49);
/* oklch */ color: oklch(71.7% 0.132 100.2);
Tailwind
colors: {
  custom: {
    50: '#d0bf71',
    500: '#b7a531',
    950: '#000000',
  },
}
SCSS
$custom: #b7a531;
$custom-light: #d0bf71;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a531",
  "rgb": {
    "r": 183,
    "g": 165,
    "b": 49
  },
  "hsl": {
    "h": 51.94,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.71708,
    "c": 0.1324,
    "h": 100.2
  },
  "luminance": 0.37199
}

Semantic roles & 50–950 ramp

primary
#B7A531
secondary
#7C86C8
accent
#5CE147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7A531

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

Preview Lab → · Contrast checker → · Palette generator →

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