#B9B52B#B9B52B

#B9B52B is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.3% C 0.150 H 107.8°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#B9B52B
RGBrgb(185, 181, 43)
HSLhsl(58, 62%, 45%)
HSVhsv(58, 77%, 73%)
CMYKcmyk(0%, 2.2%, 76.8%, 27.5%)
CIE-LABlab(71.92, -13.98, 65.31)
CIE-LCHlch(71.92, 66.78, 102.08°)
OKLaboklab(75.31% -0.0457 0.1426)
OKLCHoklch(75.31% 0.15 107.8)
XYZxyz(36.9690, 43.5377, 8.7413)
Luminance0.4354 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B52B #2B2FB9
analogous
#B96E2B #B9B52B #76B92B
triadic
#B9B52B #2BB9B5 #B52BB9
tetradic
#B9B52B #2BB96E #2B2FB9 #B92B76
square
#B9B52B #2BB96E #2B2FB9 #B92B76
split-complementary
#B9B52B #2B76B9 #6E2BB9
monochromatic
#565414 #87841F #B9B52B #D5D14C #E1DE7E

Accessibility & contrast

On white

2.16
#B9B52B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#B9B52B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B52B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B52B#FFFFFF#000000##000000
##B9B52B1.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9b52b;
/* rgb */ color: rgb(185, 181, 43);
/* oklch */ color: oklch(75.3% 0.150 107.8);
Tailwind
colors: {
  custom: {
    50: '#d2ca70',
    500: '#b9b52b',
    950: '#000000',
  },
}
SCSS
$custom: #b9b52b;
$custom-light: #d2ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b52b",
  "rgb": {
    "r": 185,
    "g": 181,
    "b": 43
  },
  "hsl": {
    "h": 58.31,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.75313,
    "c": 0.14971,
    "h": 107.8
  },
  "luminance": 0.43536
}

Semantic roles & 50–950 ramp

primary
#B9B52B
secondary
#7679C9
accent
#47E542
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B52B

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

Preview Lab → · Contrast checker → · Palette generator →

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