#B9B531#B9B531

#B9B531 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.3% C 0.146 H 107.7°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#B9B531
RGBrgb(185, 181, 49)
HSLhsl(58, 58%, 46%)
HSVhsv(58, 74%, 73%)
CMYKcmyk(0%, 2.2%, 73.5%, 27.5%)
CIE-LABlab(71.95, -13.73, 63.36)
CIE-LCHlch(71.95, 64.83, 102.22°)
OKLaboklab(75.35% -0.0445 0.1395)
OKLCHoklch(75.35% 0.146 107.7)
XYZxyz(37.0873, 43.5850, 9.3643)
Luminance0.4358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B531 #3135B9
analogous
#B97131 #B9B531 #79B931
triadic
#B9B531 #31B9B5 #B531B9
tetradic
#B9B531 #31B971 #3135B9 #B93179
square
#B9B531 #31B971 #3135B9 #B93179
split-complementary
#B9B531 #3179B9 #7131B9
monochromatic
#585617 #898624 #B9B531 #D2CE55 #DFDC86

Accessibility & contrast

On white

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

On black

9.72
#B9B531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B531
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B531#FFFFFF#000000##000000
##B9B5311.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE16
Deuteranopia (green-blind)
#C7B33B
Tritanopia (blue-blind)
#C7A99C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b531;
/* rgb */ color: rgb(185, 181, 49);
/* oklch */ color: oklch(75.3% 0.146 107.7);
Tailwind
colors: {
  custom: {
    50: '#d2ca73',
    500: '#b9b531',
    950: '#000000',
  },
}
SCSS
$custom: #b9b531;
$custom-light: #d2ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b531",
  "rgb": {
    "r": 185,
    "g": 181,
    "b": 49
  },
  "hsl": {
    "h": 58.235,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.75348,
    "c": 0.14645,
    "h": 107.7
  },
  "luminance": 0.43584
}

Semantic roles & 50–950 ramp

primary
#B9B531
secondary
#7D80C8
accent
#4BE146
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #B9B531

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

Preview Lab → · Contrast checker → · Palette generator →

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