#B8A52A#B8A52A

#B8A52A is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.8% C 0.136 H 100.0°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#B8A52A
RGBrgb(184, 165, 42)
HSLhsl(52, 63%, 44%)
HSVhsv(52, 77%, 72%)
CMYKcmyk(0%, 10.3%, 77.2%, 27.8%)
CIE-LABlab(67.48, -6.14, 61.54)
CIE-LCHlch(67.48, 61.84, 95.69°)
OKLaboklab(71.76% -0.0237 0.1344)
OKLCHoklch(71.76% 0.136 100)
XYZxyz(33.6419, 37.2694, 7.6117)
Luminance0.3727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A52A #2A3DB8
analogous
#B85E2A #B8A52A #84B82A
triadic
#B8A52A #2AB8A5 #A52AB8
tetradic
#B8A52A #2AB85E #2A3DB8 #B82A84
square
#B8A52A #2AB85E #2A3DB8 #B82A84
split-complementary
#B8A52A #2A84B8 #5E2AB8
monochromatic
#544C13 #86781F #B8A52A #D6C34A #E1D37B

Accessibility & contrast

On white

2.48
#B8A52A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#B8A52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A52A
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A52A#FFFFFF#000000##000000
##B8A52A1.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A00E
Deuteranopia (green-blind)
#BBA733
Tritanopia (blue-blind)
#C7988E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b8a52a;
/* rgb */ color: rgb(184, 165, 42);
/* oklch */ color: oklch(71.8% 0.136 100.0);
Tailwind
colors: {
  custom: {
    50: '#d1bf6e',
    500: '#b8a52a',
    950: '#000000',
  },
}
SCSS
$custom: #b8a52a;
$custom-light: #d1bf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a52a",
  "rgb": {
    "r": 184,
    "g": 165,
    "b": 42
  },
  "hsl": {
    "h": 51.972,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71757,
    "c": 0.13645,
    "h": 100
  },
  "luminance": 0.37268
}

Semantic roles & 50–950 ramp

primary
#B8A52A
secondary
#7580C9
accent
#58E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A52A

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

Preview Lab → · Contrast checker → · Palette generator →

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