#B8B52B#B8B52B

#B8B52B 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#B8B52B
RGBrgb(184, 181, 43)
HSLhsl(59, 62%, 45%)
HSVhsv(59, 77%, 72%)
CMYKcmyk(0%, 1.6%, 76.6%, 27.8%)
CIE-LABlab(71.83, -14.41, 65.20)
CIE-LCHlch(71.83, 66.77, 102.46°)
OKLaboklab(75.23% -0.0469 0.1424)
OKLCHoklch(75.23% 0.15 108.2)
XYZxyz(36.7285, 43.4137, 8.7300)
Luminance0.4341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B52B #2B2EB8
analogous
#B86E2B #B8B52B #75B82B
triadic
#B8B52B #2BB8B5 #B52BB8
tetradic
#B8B52B #2BB86E #2B2EB8 #B82B75
square
#B8B52B #2BB86E #2B2EB8 #B82B75
split-complementary
#B8B52B #2B75B8 #6E2BB8
monochromatic
#555314 #86841F #B8B52B #D5D24B #E1DE7D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8B52B#FFFFFF#000000##000000
##B8B52B1.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)
#C4AE04
Deuteranopia (green-blind)
#C7B237
Tritanopia (blue-blind)
#C6A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b8b52b;
/* rgb */ color: rgb(184, 181, 43);
/* oklch */ color: oklch(75.2% 0.150 108.2);
Tailwind
colors: {
  custom: {
    50: '#d1ca70',
    500: '#b8b52b',
    950: '#000000',
  },
}
SCSS
$custom: #b8b52b;
$custom-light: #d1ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b52b",
  "rgb": {
    "r": 184,
    "g": 181,
    "b": 43
  },
  "hsl": {
    "h": 58.723,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.75226,
    "c": 0.14989,
    "h": 108.2
  },
  "luminance": 0.43413
}

Semantic roles & 50–950 ramp

primary
#B8B52B
secondary
#7678C9
accent
#46E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B52B

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

Preview Lab → · Contrast checker → · Palette generator →

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