#B9B342#B9B342

#B9B342 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.0% C 0.133 H 106.3°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#B9B342
RGBrgb(185, 179, 66)
HSLhsl(57, 47%, 49%)
HSVhsv(57, 64%, 73%)
CMYKcmyk(0%, 3.2%, 64.3%, 27.5%)
CIE-LABlab(71.52, -11.79, 56.39)
CIE-LCHlch(71.52, 57.61, 101.81°)
OKLaboklab(75.04% -0.0373 0.1277)
OKLCHoklch(75.04% 0.133 106.3)
XYZxyz(37.1124, 42.9491, 11.4883)
Luminance0.4295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B342 #4248B9
analogous
#B97842 #B9B342 #84B942
triadic
#B9B342 #42B9B3 #B342B9
tetradic
#B9B342 #42B978 #4248B9 #B94284
square
#B9B342 #42B978 #4248B9 #B94284
split-complementary
#B9B342 #4284B9 #7842B9
monochromatic
#5F5C22 #8C8732 #B9B342 #CBC66D #DBD89A

Accessibility & contrast

On white

2.19
#B9B342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#B9B342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B342
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B342#FFFFFF#000000##000000
##B9B3421.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD34
Deuteranopia (green-blind)
#C4B149
Tritanopia (blue-blind)
#C6A89C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b9b342;
/* rgb */ color: rgb(185, 179, 66);
/* oklch */ color: oklch(75.0% 0.133 106.3);
Tailwind
colors: {
  custom: {
    50: '#d1c97c',
    500: '#b9b342',
    950: '#000000',
  },
}
SCSS
$custom: #b9b342;
$custom-light: #d1c97c;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b342",
  "rgb": {
    "r": 185,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 56.975,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.75043,
    "c": 0.13304,
    "h": 106.3
  },
  "luminance": 0.42948
}

Semantic roles & 50–950 ramp

primary
#B9B342
secondary
#9092C7
accent
#58D751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B9B342

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

Preview Lab → · Contrast checker → · Palette generator →

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