#B8B52A#B8B52A

#B8B52A is a light, vivid yellow. Relative luminance 0.434; OKLCH L 75.2% C 0.150 H 108.2°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#B8B52A
RGBrgb(184, 181, 42)
HSLhsl(59, 63%, 44%)
HSVhsv(59, 77%, 72%)
CMYKcmyk(0%, 1.6%, 77.2%, 27.8%)
CIE-LABlab(71.83, -14.45, 65.51)
CIE-LCHlch(71.83, 67.08, 102.44°)
OKLaboklab(75.22% -0.0471 0.1428)
OKLCHoklch(75.22% 0.15 108.2)
XYZxyz(36.7104, 43.4065, 8.6346)
Luminance0.4340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B52A #2A2DB8
analogous
#B86E2A #B8B52A #74B82A
triadic
#B8B52A #2AB8B5 #B52AB8
tetradic
#B8B52A #2AB86E #2A2DB8 #B82A74
square
#B8B52A #2AB86E #2A2DB8 #B82A74
split-complementary
#B8B52A #2A74B8 #6E2AB8
monochromatic
#545313 #86841F #B8B52A #D6D34A #E1DF7B

Accessibility & contrast

On white

2.17
#B8B52A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.68
#B8B52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B52A
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B52A#FFFFFF#000000##000000
##B8B52A1.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD01
Deuteranopia (green-blind)
#C7B236
Tritanopia (blue-blind)
#C6A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b8b52a;
/* rgb */ color: rgb(184, 181, 42);
/* oklch */ color: oklch(75.2% 0.150 108.2);
Tailwind
colors: {
  custom: {
    50: '#d1ca70',
    500: '#b8b52a',
    950: '#000000',
  },
}
SCSS
$custom: #b8b52a;
$custom-light: #d1ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b52a",
  "rgb": {
    "r": 184,
    "g": 181,
    "b": 42
  },
  "hsl": {
    "h": 58.732,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.7522,
    "c": 0.15039,
    "h": 108.2
  },
  "luminance": 0.43405
}

Semantic roles & 50–950 ramp

primary
#B8B52A
secondary
#7576C9
accent
#45E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B52A

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

Preview Lab → · Contrast checker → · Palette generator →

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