#B9B731#B9B731

#B9B731 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.8% C 0.148 H 108.6°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#B9B731
RGBrgb(185, 183, 49)
HSLhsl(59, 58%, 46%)
HSVhsv(59, 74%, 73%)
CMYKcmyk(0%, 1.1%, 73.5%, 27.5%)
CIE-LABlab(72.50, -14.75, 63.87)
CIE-LCHlch(72.50, 65.55, 103.00°)
OKLaboklab(75.79% -0.0473 0.1406)
OKLCHoklch(75.79% 0.148 108.6)
XYZxyz(37.4969, 44.4042, 9.5008)
Luminance0.4440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B731 #3133B9
analogous
#B97331 #B9B731 #77B931
triadic
#B9B731 #31B9B7 #B731B9
tetradic
#B9B731 #31B973 #3133B9 #B93177
square
#B9B731 #31B973 #3133B9 #B93177
split-complementary
#B9B731 #3177B9 #7331B9
monochromatic
#585717 #898724 #B9B731 #D2D055 #DFDE86

Accessibility & contrast

On white

2.13
#B9B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#B9B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B731
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B731#FFFFFF#000000##000000
##B9B7311.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF15
Deuteranopia (green-blind)
#C8B43B
Tritanopia (blue-blind)
#C6AB9D
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b9b731;
/* rgb */ color: rgb(185, 183, 49);
/* oklch */ color: oklch(75.8% 0.148 108.6);
Tailwind
colors: {
  custom: {
    50: '#d2cc73',
    500: '#b9b731',
    950: '#000000',
  },
}
SCSS
$custom: #b9b731;
$custom-light: #d2cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b731",
  "rgb": {
    "r": 185,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 59.118,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.75785,
    "c": 0.14837,
    "h": 108.6
  },
  "luminance": 0.44403
}

Semantic roles & 50–950 ramp

primary
#B9B731
secondary
#7D7FC8
accent
#49E146
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #B9B731

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

Preview Lab → · Contrast checker → · Palette generator →

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