#B8B431#B8B431

#B8B431 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.0% C 0.146 H 107.7°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#B8B431
RGBrgb(184, 180, 49)
HSLhsl(58, 58%, 46%)
HSVhsv(58, 73%, 72%)
CMYKcmyk(0%, 2.2%, 73.4%, 27.8%)
CIE-LABlab(71.59, -13.65, 62.99)
CIE-LCHlch(71.59, 64.45, 102.22°)
OKLaboklab(75.04% -0.0442 0.1388)
OKLCHoklch(75.04% 0.146 107.7)
XYZxyz(36.6442, 43.0559, 9.2855)
Luminance0.4305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B431 #3135B8
analogous
#B87031 #B8B431 #78B831
triadic
#B8B431 #31B8B4 #B431B8
tetradic
#B8B431 #31B870 #3135B8 #B83178
square
#B8B431 #31B870 #3135B8 #B83178
split-complementary
#B8B431 #3178B8 #7031B8
monochromatic
#575517 #888524 #B8B431 #D2CE55 #DEDC85

Accessibility & contrast

On white

2.18
#B8B431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.61
#B8B431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B431
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B431#FFFFFF#000000##000000
##B8B4311.002.189.619.61
#FFFFFF2.181.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD17
Deuteranopia (green-blind)
#C6B23B
Tritanopia (blue-blind)
#C5A89B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b8b431;
/* rgb */ color: rgb(184, 180, 49);
/* oklch */ color: oklch(75.0% 0.146 107.7);
Tailwind
colors: {
  custom: {
    50: '#d1ca73',
    500: '#b8b431',
    950: '#000000',
  },
}
SCSS
$custom: #b8b431;
$custom-light: #d1ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b431",
  "rgb": {
    "r": 184,
    "g": 180,
    "b": 49
  },
  "hsl": {
    "h": 58.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75043,
    "c": 0.14565,
    "h": 107.7
  },
  "luminance": 0.43055
}

Semantic roles & 50–950 ramp

primary
#B8B431
secondary
#7D7FC8
accent
#4BE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8B431

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

Preview Lab → · Contrast checker → · Palette generator →

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