#B9B333#B9B333

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

Color values

HEX#B9B333
RGBrgb(185, 179, 51)
HSLhsl(57, 57%, 46%)
HSVhsv(57, 72%, 73%)
CMYKcmyk(0%, 3.2%, 72.4%, 27.5%)
CIE-LABlab(71.42, -12.61, 62.15)
CIE-LCHlch(71.42, 63.41, 101.47°)
OKLaboklab(74.93% -0.0411 0.1373)
OKLCHoklch(74.93% 0.143 106.7)
XYZxyz(36.7267, 42.7948, 9.4569)
Luminance0.4279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B333 #3339B9
analogous
#B97033 #B9B333 #7CB933
triadic
#B9B333 #33B9B3 #B333B9
tetradic
#B9B333 #33B970 #3339B9 #B9337C
square
#B9B333 #33B970 #3339B9 #B9337C
split-complementary
#B9B333 #337CB9 #7033B9
monochromatic
#595619 #898526 #B9B333 #D1CC58 #DEDA88

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9B333#FFFFFF#000000##000000
##B9B3331.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)
#C2AC1B
Deuteranopia (green-blind)
#C5B13C
Tritanopia (blue-blind)
#C7A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b9b333;
/* rgb */ color: rgb(185, 179, 51);
/* oklch */ color: oklch(74.9% 0.143 106.7);
Tailwind
colors: {
  custom: {
    50: '#d2c974',
    500: '#b9b333',
    950: '#000000',
  },
}
SCSS
$custom: #b9b333;
$custom-light: #d2c974;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b333",
  "rgb": {
    "r": 185,
    "g": 179,
    "b": 51
  },
  "hsl": {
    "h": 57.313,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.74925,
    "c": 0.14335,
    "h": 106.7
  },
  "luminance": 0.42794
}

Semantic roles & 50–950 ramp

primary
#B9B333
secondary
#8083C8
accent
#4FE048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #B9B333

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

Preview Lab → · Contrast checker → · Palette generator →

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