#B8B031#B8B031

#B8B031 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.2% C 0.142 H 105.7°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#B8B031
RGBrgb(184, 176, 49)
HSLhsl(56, 58%, 46%)
HSVhsv(56, 73%, 72%)
CMYKcmyk(0%, 4.3%, 73.4%, 27.8%)
CIE-LABlab(70.50, -11.59, 61.95)
CIE-LCHlch(70.50, 63.03, 100.60°)
OKLaboklab(74.17% -0.0384 0.1366)
OKLCHoklch(74.17% 0.142 105.7)
XYZxyz(35.8483, 41.4641, 9.0202)
Luminance0.4146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B031 #3139B8
analogous
#B86C31 #B8B031 #7DB831
triadic
#B8B031 #31B8B0 #B031B8
tetradic
#B8B031 #31B86C #3139B8 #B8317D
square
#B8B031 #31B86C #3139B8 #B8317D
split-complementary
#B8B031 #317DB8 #6C31B8
monochromatic
#575417 #888224 #B8B031 #D2CA55 #DED985

Accessibility & contrast

On white

2.26
#B8B031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#B8B031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B031
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B031#FFFFFF#000000##000000
##B8B0311.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA919
Deuteranopia (green-blind)
#C3AF3A
Tritanopia (blue-blind)
#C6A498
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b8b031;
/* rgb */ color: rgb(184, 176, 49);
/* oklch */ color: oklch(74.2% 0.142 105.7);
Tailwind
colors: {
  custom: {
    50: '#d1c772',
    500: '#b8b031',
    950: '#000000',
  },
}
SCSS
$custom: #b8b031;
$custom-light: #d1c772;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b031",
  "rgb": {
    "r": 184,
    "g": 176,
    "b": 49
  },
  "hsl": {
    "h": 56.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74172,
    "c": 0.14188,
    "h": 105.7
  },
  "luminance": 0.41463
}

Semantic roles & 50–950 ramp

primary
#B8B031
secondary
#7D81C8
accent
#50E147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B8B031

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

Preview Lab → · Contrast checker → · Palette generator →

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