#B9B040#B9B040

#B9B040 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.4% C 0.132 H 104.7°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#B9B040
RGBrgb(185, 176, 64)
HSLhsl(56, 49%, 49%)
HSVhsv(56, 65%, 73%)
CMYKcmyk(0%, 4.9%, 65.4%, 27.5%)
CIE-LABlab(70.69, -10.36, 56.36)
CIE-LCHlch(70.69, 57.30, 100.42°)
OKLaboklab(74.38% -0.0334 0.1273)
OKLCHoklch(74.38% 0.132 104.7)
XYZxyz(36.4597, 41.7365, 10.9849)
Luminance0.4173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B040 #4049B9
analogous
#B97440 #B9B040 #86B940
triadic
#B9B040 #40B9B0 #B040B9
tetradic
#B9B040 #40B974 #4049B9 #B94086
square
#B9B040 #40B974 #4049B9 #B94086
split-complementary
#B9B040 #4086B9 #7440B9
monochromatic
#5E5921 #8C8530 #B9B040 #CCC46B #DBD698

Accessibility & contrast

On white

2.25
#B9B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#B9B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B040
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B040#FFFFFF#000000##000000
##B9B0401.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA31
Deuteranopia (green-blind)
#C2AF47
Tritanopia (blue-blind)
#C6A499
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b9b040;
/* rgb */ color: rgb(185, 176, 64);
/* oklch */ color: oklch(74.4% 0.132 104.7);
Tailwind
colors: {
  custom: {
    50: '#d1c77b',
    500: '#b9b040',
    950: '#000000',
  },
}
SCSS
$custom: #b9b040;
$custom-light: #d1c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b040",
  "rgb": {
    "r": 185,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 55.537,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74376,
    "c": 0.13165,
    "h": 104.7
  },
  "luminance": 0.41735
}

Semantic roles & 50–950 ramp

primary
#B9B040
secondary
#8E92C7
accent
#5AD850
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B9B040

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

Preview Lab → · Contrast checker → · Palette generator →

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