#B9B431#B9B431

#B9B431 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.1% C 0.145 H 107.2°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#B9B431
RGBrgb(185, 180, 49)
HSLhsl(58, 58%, 46%)
HSVhsv(58, 74%, 73%)
CMYKcmyk(0%, 2.7%, 73.5%, 27.5%)
CIE-LABlab(71.68, -13.21, 63.10)
CIE-LCHlch(71.68, 64.47, 101.83°)
OKLaboklab(75.13% -0.043 0.139)
OKLCHoklch(75.13% 0.145 107.2)
XYZxyz(36.8847, 43.1798, 9.2967)
Luminance0.4318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B431 #3136B9
analogous
#B97031 #B9B431 #7AB931
triadic
#B9B431 #31B9B4 #B431B9
tetradic
#B9B431 #31B970 #3136B9 #B9317A
square
#B9B431 #31B970 #3136B9 #B9317A
split-complementary
#B9B431 #317AB9 #7031B9
monochromatic
#585617 #898524 #B9B431 #D2CD55 #DFDC86

Accessibility & contrast

On white

2.18
#B9B431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#B9B431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B431
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B431#FFFFFF#000000##000000
##B9B4311.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD17
Deuteranopia (green-blind)
#C6B23B
Tritanopia (blue-blind)
#C7A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b431;
/* rgb */ color: rgb(185, 180, 49);
/* oklch */ color: oklch(75.1% 0.145 107.2);
Tailwind
colors: {
  custom: {
    50: '#d2ca73',
    500: '#b9b431',
    950: '#000000',
  },
}
SCSS
$custom: #b9b431;
$custom-light: #d2ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b431",
  "rgb": {
    "r": 185,
    "g": 180,
    "b": 49
  },
  "hsl": {
    "h": 57.794,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.7513,
    "c": 0.14549,
    "h": 107.2
  },
  "luminance": 0.43179
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B9B431

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

Preview Lab → · Contrast checker → · Palette generator →

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