#B8A72A#B8A72A

#B8A72A is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.2% C 0.138 H 101.2°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#B8A72A
RGBrgb(184, 167, 42)
HSLhsl(53, 63%, 44%)
HSVhsv(53, 77%, 72%)
CMYKcmyk(0%, 9.2%, 77.2%, 27.8%)
CIE-LABlab(68.02, -7.19, 62.03)
CIE-LCHlch(68.02, 62.45, 96.61°)
OKLaboklab(72.19% -0.0267 0.1354)
OKLCHoklch(72.19% 0.138 101.2)
XYZxyz(34.0054, 37.9965, 7.7329)
Luminance0.3800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A72A #2A3BB8
analogous
#B8602A #B8A72A #82B82A
triadic
#B8A72A #2AB8A7 #A72AB8
tetradic
#B8A72A #2AB860 #2A3BB8 #B82A82
square
#B8A72A #2AB860 #2A3BB8 #B82A82
split-complementary
#B8A72A #2A82B8 #602AB8
monochromatic
#544D13 #867A1F #B8A72A #D6C54A #E1D57B

Accessibility & contrast

On white

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

On black

8.60
#B8A72A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A72A
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A72A#FFFFFF#000000##000000
##B8A72A1.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b8a72a;
/* rgb */ color: rgb(184, 167, 42);
/* oklch */ color: oklch(72.2% 0.138 101.2);
Tailwind
colors: {
  custom: {
    50: '#d1c06e',
    500: '#b8a72a',
    950: '#000000',
  },
}
SCSS
$custom: #b8a72a;
$custom-light: #d1c06e;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a72a",
  "rgb": {
    "r": 184,
    "g": 167,
    "b": 42
  },
  "hsl": {
    "h": 52.817,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.72185,
    "c": 0.13804,
    "h": 101.2
  },
  "luminance": 0.37995
}

Semantic roles & 50–950 ramp

primary
#B8A72A
secondary
#757FC9
accent
#56E642
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A72A

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

Preview Lab → · Contrast checker → · Palette generator →

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