#B9AA31#B9AA31

#B9AA31 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 73.0% C 0.136 H 102.0°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#B9AA31
RGBrgb(185, 170, 49)
HSLhsl(53, 58%, 46%)
HSVhsv(53, 74%, 73%)
CMYKcmyk(0%, 8.1%, 73.5%, 27.5%)
CIE-LABlab(68.96, -8.03, 60.51)
CIE-LCHlch(68.96, 61.04, 97.56°)
OKLaboklab(72.97% -0.0284 0.1335)
OKLCHoklch(72.97% 0.136 102)
XYZxyz(34.9383, 39.2870, 8.6479)
Luminance0.3928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AA31 #3140B9
analogous
#B96631 #B9AA31 #84B931
triadic
#B9AA31 #31B9AA #AA31B9
tetradic
#B9AA31 #31B966 #3140B9 #B93184
square
#B9AA31 #31B966 #3140B9 #B93184
split-complementary
#B9AA31 #3184B9 #6631B9
monochromatic
#585117 #897E24 #B9AA31 #D2C455 #DFD586

Accessibility & contrast

On white

2.37
#B9AA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#B9AA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9AA31
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9AA31#FFFFFF#000000##000000
##B9AA311.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51B
Deuteranopia (green-blind)
#BEAB39
Tritanopia (blue-blind)
#C79E92
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b9aa31;
/* rgb */ color: rgb(185, 170, 49);
/* oklch */ color: oklch(73.0% 0.136 102.0);
Tailwind
colors: {
  custom: {
    50: '#d2c272',
    500: '#b9aa31',
    950: '#000000',
  },
}
SCSS
$custom: #b9aa31;
$custom-light: #d2c272;
$custom-dark: #000000;
JSON
{
  "hex": "#b9aa31",
  "rgb": {
    "r": 185,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 53.382,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.72966,
    "c": 0.13649,
    "h": 102
  },
  "luminance": 0.39285
}

Semantic roles & 50–950 ramp

primary
#B9AA31
secondary
#7D86C8
accent
#58E146
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9AA31

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

Preview Lab → · Contrast checker → · Palette generator →

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