#B9B331#B9B331

#B9B331 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.9% C 0.145 H 106.7°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#B9B331
RGBrgb(185, 179, 49)
HSLhsl(57, 58%, 46%)
HSVhsv(57, 74%, 73%)
CMYKcmyk(0%, 3.2%, 73.5%, 27.5%)
CIE-LABlab(71.40, -12.70, 62.84)
CIE-LCHlch(71.40, 64.11, 101.43°)
OKLaboklab(74.91% -0.0416 0.1384)
OKLCHoklch(74.91% 0.145 106.7)
XYZxyz(36.6835, 42.7775, 9.2297)
Luminance0.4278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B331 #3137B9
analogous
#B96F31 #B9B331 #7BB931
triadic
#B9B331 #31B9B3 #B331B9
tetradic
#B9B331 #31B96F #3137B9 #B9317B
square
#B9B331 #31B96F #3137B9 #B9317B
split-complementary
#B9B331 #317BB9 #6F31B9
monochromatic
#585517 #898424 #B9B331 #D2CD55 #DFDB86

Accessibility & contrast

On white

2.20
#B9B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.56
#B9B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B331
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B331#FFFFFF#000000##000000
##B9B3311.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC17
Deuteranopia (green-blind)
#C5B13B
Tritanopia (blue-blind)
#C7A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b9b331;
/* rgb */ color: rgb(185, 179, 49);
/* oklch */ color: oklch(74.9% 0.145 106.7);
Tailwind
colors: {
  custom: {
    50: '#d2c973',
    500: '#b9b331',
    950: '#000000',
  },
}
SCSS
$custom: #b9b331;
$custom-light: #d2c973;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b331",
  "rgb": {
    "r": 185,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 57.353,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.74912,
    "c": 0.14455,
    "h": 106.7
  },
  "luminance": 0.42776
}

Semantic roles & 50–950 ramp

primary
#B9B331
secondary
#7D81C8
accent
#4DE146
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #B9B331

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

Preview Lab → · Contrast checker → · Palette generator →

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