#B7A031#B7A031

#B7A031 is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.129 H 97.1°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#B7A031
RGBrgb(183, 160, 49)
HSLhsl(50, 58%, 45%)
HSVhsv(50, 73%, 72%)
CMYKcmyk(0%, 12.6%, 73.2%, 28.2%)
CIE-LABlab(66.08, -3.62, 57.67)
CIE-LCHlch(66.08, 57.79, 93.59°)
OKLaboklab(70.64% -0.0158 0.1276)
OKLCHoklch(70.64% 0.129 97.1)
XYZxyz(32.6553, 35.4323, 8.0242)
Luminance0.3543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A031 #3148B7
analogous
#B75D31 #B7A031 #8BB731
triadic
#B7A031 #31B7A0 #A031B7
tetradic
#B7A031 #31B75D #3148B7 #B7318B
square
#B7A031 #31B75D #3148B7 #B7318B
split-complementary
#B7A031 #318BB7 #5D31B7
monochromatic
#564C17 #877624 #B7A031 #D1BC54 #DECF84

Accessibility & contrast

On white

2.60
#B7A031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#B7A031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A031
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A031#FFFFFF#000000##000000
##B7A0311.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B6A438
Tritanopia (blue-blind)
#C6948A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b7a031;
/* rgb */ color: rgb(183, 160, 49);
/* oklch */ color: oklch(70.6% 0.129 97.1);
Tailwind
colors: {
  custom: {
    50: '#d0bb71',
    500: '#b7a031',
    950: '#000000',
  },
}
SCSS
$custom: #b7a031;
$custom-light: #d0bb71;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a031",
  "rgb": {
    "r": 183,
    "g": 160,
    "b": 49
  },
  "hsl": {
    "h": 49.701,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70643,
    "c": 0.12854,
    "h": 97.1
  },
  "luminance": 0.35431
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B7A031

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

Preview Lab → · Contrast checker → · Palette generator →

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