#B5A031#B5A031

#B5A031 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.128 H 98.2°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#B5A031
RGBrgb(181, 160, 49)
HSLhsl(50, 57%, 45%)
HSVhsv(50, 73%, 71%)
CMYKcmyk(0%, 11.6%, 72.9%, 29%)
CIE-LABlab(65.90, -4.50, 57.42)
CIE-LCHlch(65.90, 57.60, 94.48°)
OKLaboklab(70.45% -0.0182 0.1271)
OKLCHoklch(70.45% 0.128 98.2)
XYZxyz(32.1828, 35.1887, 8.0021)
Luminance0.3519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A031 #3146B5
analogous
#B55E31 #B5A031 #88B531
triadic
#B5A031 #31B5A0 #A031B5
tetradic
#B5A031 #31B55E #3146B5 #B53188
square
#B5A031 #31B55E #3146B5 #B53188
split-complementary
#B5A031 #3188B5 #5E31B5
monochromatic
#554B17 #857524 #B5A031 #D0BC53 #DDCF83

Accessibility & contrast

On white

2.61
#B5A031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#B5A031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A031
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A031#FFFFFF#000000##000000
##B5A0311.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B6A338
Tritanopia (blue-blind)
#C3948A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b5a031;
/* rgb */ color: rgb(181, 160, 49);
/* oklch */ color: oklch(70.4% 0.128 98.2);
Tailwind
colors: {
  custom: {
    50: '#cfbb71',
    500: '#b5a031',
    950: '#000000',
  },
}
SCSS
$custom: #b5a031;
$custom-light: #cfbb71;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a031",
  "rgb": {
    "r": 181,
    "g": 160,
    "b": 49
  },
  "hsl": {
    "h": 50.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.70449,
    "c": 0.12841,
    "h": 98.2
  },
  "luminance": 0.35187
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B5A031

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

Preview Lab → · Contrast checker → · Palette generator →

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