#B9A031#B9A031

#B9A031 is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.8% C 0.129 H 96.0°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#B9A031
RGBrgb(185, 160, 49)
HSLhsl(49, 58%, 46%)
HSVhsv(49, 74%, 73%)
CMYKcmyk(0%, 13.5%, 73.5%, 27.5%)
CIE-LABlab(66.27, -2.73, 57.92)
CIE-LCHlch(66.27, 57.99, 92.70°)
OKLaboklab(70.84% -0.0134 0.128)
OKLCHoklch(70.84% 0.129 96)
XYZxyz(33.1345, 35.6794, 8.0467)
Luminance0.3568 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A031 #314AB9
analogous
#B95C31 #B9A031 #8EB931
triadic
#B9A031 #31B9A0 #A031B9
tetradic
#B9A031 #31B95C #314AB9 #B9318E
square
#B9A031 #31B95C #314AB9 #B9318E
split-complementary
#B9A031 #318EB9 #5C31B9
monochromatic
#584C17 #897624 #B9A031 #D2BB55 #DFCE86

Accessibility & contrast

On white

2.58
#B9A031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#B9A031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A031
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A031#FFFFFF#000000##000000
##B9A0311.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9a031;
/* rgb */ color: rgb(185, 160, 49);
/* oklch */ color: oklch(70.8% 0.129 96.0);
Tailwind
colors: {
  custom: {
    50: '#d2bb71',
    500: '#b9a031',
    950: '#000000',
  },
}
SCSS
$custom: #b9a031;
$custom-light: #d2bb71;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a031",
  "rgb": {
    "r": 185,
    "g": 160,
    "b": 49
  },
  "hsl": {
    "h": 48.971,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70838,
    "c": 0.12871,
    "h": 96
  },
  "luminance": 0.35678
}

Semantic roles & 50–950 ramp

primary
#B9A031
secondary
#7D8BC8
accent
#63E146
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #B9A031

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

Preview Lab → · Contrast checker → · Palette generator →

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