#B8B731#B8B731

#B8B731 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 75.7% C 0.149 H 109.0°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#B8B731
RGBrgb(184, 183, 49)
HSLhsl(60, 58%, 46%)
HSVhsv(60, 73%, 72%)
CMYKcmyk(0%, 0.5%, 73.4%, 27.8%)
CIE-LABlab(72.42, -15.18, 63.77)
CIE-LCHlch(72.42, 65.55, 103.39°)
OKLaboklab(75.7% -0.0485 0.1404)
OKLCHoklch(75.7% 0.149 109)
XYZxyz(37.2564, 44.2802, 9.4895)
Luminance0.4428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B731 #3132B8
analogous
#B87431 #B8B731 #75B831
triadic
#B8B731 #31B8B7 #B731B8
tetradic
#B8B731 #31B874 #3132B8 #B83175
square
#B8B731 #31B874 #3132B8 #B83175
split-complementary
#B8B731 #3175B8 #7431B8
monochromatic
#575717 #888724 #B8B731 #D2D155 #DEDE85

Accessibility & contrast

On white

2.13
#B8B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#B8B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B731
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B731#FFFFFF#000000##000000
##B8B7311.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF15
Deuteranopia (green-blind)
#C8B43B
Tritanopia (blue-blind)
#C5AB9D
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b8b731;
/* rgb */ color: rgb(184, 183, 49);
/* oklch */ color: oklch(75.7% 0.149 109.0);
Tailwind
colors: {
  custom: {
    50: '#d1cc73',
    500: '#b8b731',
    950: '#000000',
  },
}
SCSS
$custom: #b8b731;
$custom-light: #d1cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b731",
  "rgb": {
    "r": 184,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 59.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75699,
    "c": 0.14856,
    "h": 109
  },
  "luminance": 0.44279
}

Semantic roles & 50–950 ramp

primary
#B8B731
secondary
#7D7DC8
accent
#48E147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8B731

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

Preview Lab → · Contrast checker → · Palette generator →

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