#B9A331#B9A331

#B9A331 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.5% C 0.131 H 97.9°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#B9A331
RGBrgb(185, 163, 49)
HSLhsl(50, 58%, 46%)
HSVhsv(50, 74%, 73%)
CMYKcmyk(0%, 11.9%, 73.5%, 27.5%)
CIE-LABlab(67.08, -4.33, 58.70)
CIE-LCHlch(67.08, 58.86, 94.22°)
OKLaboklab(71.47% -0.018 0.1296)
OKLCHoklch(71.47% 0.131 97.9)
XYZxyz(33.6608, 36.7321, 8.2221)
Luminance0.3673 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A331 #3147B9
analogous
#B95F31 #B9A331 #8BB931
triadic
#B9A331 #31B9A3 #A331B9
tetradic
#B9A331 #31B95F #3147B9 #B9318B
square
#B9A331 #31B95F #3147B9 #B9318B
split-complementary
#B9A331 #318BB9 #5F31B9
monochromatic
#584E17 #897824 #B9A331 #D2BE55 #DFD086

Accessibility & contrast

On white

2.52
#B9A331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#B9A331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A331
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A331#FFFFFF#000000##000000
##B9A3311.002.528.358.35
#FFFFFF2.521.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F1E
Deuteranopia (green-blind)
#B9A638
Tritanopia (blue-blind)
#C8978D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b9a331;
/* rgb */ color: rgb(185, 163, 49);
/* oklch */ color: oklch(71.5% 0.131 97.9);
Tailwind
colors: {
  custom: {
    50: '#d2bd71',
    500: '#b9a331',
    950: '#000000',
  },
}
SCSS
$custom: #b9a331;
$custom-light: #d2bd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a331",
  "rgb": {
    "r": 185,
    "g": 163,
    "b": 49
  },
  "hsl": {
    "h": 50.294,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71472,
    "c": 0.13089,
    "h": 97.9
  },
  "luminance": 0.3673
}

Semantic roles & 50–950 ramp

primary
#B9A331
secondary
#7D8AC8
accent
#60E146
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9A331

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

Preview Lab → · Contrast checker → · Palette generator →

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