#B7A131#B7A131

#B7A131 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.9% C 0.129 H 97.7°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#B7A131
RGBrgb(183, 161, 49)
HSLhsl(50, 58%, 45%)
HSVhsv(50, 73%, 72%)
CMYKcmyk(0%, 12%, 73.2%, 28.2%)
CIE-LABlab(66.35, -4.15, 57.93)
CIE-LCHlch(66.35, 58.08, 94.10°)
OKLaboklab(70.86% -0.0173 0.1281)
OKLCHoklch(70.86% 0.129 97.7)
XYZxyz(32.8293, 35.7804, 8.0822)
Luminance0.3578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A131 #3147B7
analogous
#B75E31 #B7A131 #8AB731
triadic
#B7A131 #31B7A1 #A131B7
tetradic
#B7A131 #31B75E #3147B7 #B7318A
square
#B7A131 #31B75E #3147B7 #B7318A
split-complementary
#B7A131 #318AB7 #5E31B7
monochromatic
#564C17 #877724 #B7A131 #D1BD54 #DECF84

Accessibility & contrast

On white

2.57
#B7A131 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#B7A131 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A131
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A131#FFFFFF#000000##000000
##B7A1311.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1E
Deuteranopia (green-blind)
#B7A538
Tritanopia (blue-blind)
#C6958B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b7a131;
/* rgb */ color: rgb(183, 161, 49);
/* oklch */ color: oklch(70.9% 0.129 97.7);
Tailwind
colors: {
  custom: {
    50: '#d0bc71',
    500: '#b7a131',
    950: '#000000',
  },
}
SCSS
$custom: #b7a131;
$custom-light: #d0bc71;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a131",
  "rgb": {
    "r": 183,
    "g": 161,
    "b": 49
  },
  "hsl": {
    "h": 50.149,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70855,
    "c": 0.12928,
    "h": 97.7
  },
  "luminance": 0.35779
}

Semantic roles & 50–950 ramp

primary
#B7A131
secondary
#7C89C8
accent
#60E147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B7A131

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

Preview Lab → · Contrast checker → · Palette generator →

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