#B9B142#B9B142

#B9B142 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.6% C 0.131 H 105.2°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#B9B142
RGBrgb(185, 177, 66)
HSLhsl(56, 47%, 49%)
HSVhsv(56, 64%, 73%)
CMYKcmyk(0%, 4.3%, 64.3%, 27.5%)
CIE-LABlab(70.98, -10.76, 55.82)
CIE-LCHlch(70.98, 56.85, 100.91°)
OKLaboklab(74.61% -0.0343 0.1265)
OKLCHoklch(74.61% 0.131 105.2)
XYZxyz(36.7144, 42.1532, 11.3556)
Luminance0.4215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B142 #424AB9
analogous
#B97642 #B9B142 #86B942
triadic
#B9B142 #42B9B1 #B142B9
tetradic
#B9B142 #42B976 #424AB9 #B94286
square
#B9B142 #42B976 #424AB9 #B94286
split-complementary
#B9B142 #4286B9 #7642B9
monochromatic
#5F5B22 #8C8632 #B9B142 #CBC56D #DBD79A

Accessibility & contrast

On white

2.23
#B9B142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#B9B142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B142
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B142#FFFFFF#000000##000000
##B9B1421.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB34
Deuteranopia (green-blind)
#C3B049
Tritanopia (blue-blind)
#C6A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b9b142;
/* rgb */ color: rgb(185, 177, 66);
/* oklch */ color: oklch(74.6% 0.131 105.2);
Tailwind
colors: {
  custom: {
    50: '#d1c87c',
    500: '#b9b142',
    950: '#000000',
  },
}
SCSS
$custom: #b9b142;
$custom-light: #d1c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b142",
  "rgb": {
    "r": 185,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 55.966,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.7461,
    "c": 0.13108,
    "h": 105.2
  },
  "luminance": 0.42152
}

Semantic roles & 50–950 ramp

primary
#B9B142
secondary
#9093C7
accent
#5AD751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B9B142

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

Preview Lab → · Contrast checker → · Palette generator →

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