#B8B040#B8B040

#B8B040 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.3% C 0.132 H 105.2°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#B8B040
RGBrgb(184, 176, 64)
HSLhsl(56, 48%, 49%)
HSVhsv(56, 65%, 72%)
CMYKcmyk(0%, 4.3%, 65.2%, 27.8%)
CIE-LABlab(70.60, -10.79, 56.24)
CIE-LCHlch(70.60, 57.27, 100.86°)
OKLaboklab(74.29% -0.0346 0.1271)
OKLCHoklch(74.29% 0.132 105.2)
XYZxyz(36.2193, 41.6125, 10.9736)
Luminance0.4161 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B040 #4048B8
analogous
#B87440 #B8B040 #84B840
triadic
#B8B040 #40B8B0 #B040B8
tetradic
#B8B040 #40B874 #4048B8 #B84084
square
#B8B040 #40B874 #4048B8 #B84084
split-complementary
#B8B040 #4084B8 #7440B8
monochromatic
#5D5920 #8B8530 #B8B040 #CBC56A #DBD697

Accessibility & contrast

On white

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

On black

9.32
#B8B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B040
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B040#FFFFFF#000000##000000
##B8B0401.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b8b040;
/* rgb */ color: rgb(184, 176, 64);
/* oklch */ color: oklch(74.3% 0.132 105.2);
Tailwind
colors: {
  custom: {
    50: '#d0c77b',
    500: '#b8b040',
    950: '#000000',
  },
}
SCSS
$custom: #b8b040;
$custom-light: #d0c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b040",
  "rgb": {
    "r": 184,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 56,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.74286,
    "c": 0.13174,
    "h": 105.2
  },
  "luminance": 0.41611
}

Semantic roles & 50–950 ramp

primary
#B8B040
secondary
#8D91C7
accent
#59D850
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B8B040

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

Preview Lab → · Contrast checker → · Palette generator →

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