#B9A72A#B9A72A

#B9A72A is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.3% C 0.138 H 100.7°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#B9A72A
RGBrgb(185, 167, 42)
HSLhsl(52, 63%, 45%)
HSVhsv(52, 77%, 73%)
CMYKcmyk(0%, 9.7%, 77.3%, 27.5%)
CIE-LABlab(68.11, -6.75, 62.15)
CIE-LCHlch(68.11, 62.52, 96.20°)
OKLaboklab(72.28% -0.0255 0.1356)
OKLCHoklch(72.28% 0.138 100.7)
XYZxyz(34.2459, 38.1205, 7.7442)
Luminance0.3812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A72A #2A3CB9
analogous
#B9602A #B9A72A #83B92A
triadic
#B9A72A #2AB9A7 #A72AB9
tetradic
#B9A72A #2AB960 #2A3CB9 #B92A83
square
#B9A72A #2AB960 #2A3CB9 #B92A83
split-complementary
#B9A72A #2A83B9 #602AB9
monochromatic
#554D13 #877A1F #B9A72A #D6C44A #E1D57C

Accessibility & contrast

On white

2.44
#B9A72A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#B9A72A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A72A
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A72A#FFFFFF#000000##000000
##B9A72A1.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A20D
Deuteranopia (green-blind)
#BCA933
Tritanopia (blue-blind)
#C89A8F
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b9a72a;
/* rgb */ color: rgb(185, 167, 42);
/* oklch */ color: oklch(72.3% 0.138 100.7);
Tailwind
colors: {
  custom: {
    50: '#d2c06e',
    500: '#b9a72a',
    950: '#000000',
  },
}
SCSS
$custom: #b9a72a;
$custom-light: #d2c06e;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a72a",
  "rgb": {
    "r": 185,
    "g": 167,
    "b": 42
  },
  "hsl": {
    "h": 52.448,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72279,
    "c": 0.13801,
    "h": 100.7
  },
  "luminance": 0.38119
}

Semantic roles & 50–950 ramp

primary
#B9A72A
secondary
#7580CA
accent
#56E642
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B9A72A

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

Preview Lab → · Contrast checker → · Palette generator →

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