#B8B831#B8B831

#B8B831 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 75.9% C 0.150 H 109.5°. Best body text is #000000 at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#B8B831
RGBrgb(184, 184, 49)
HSLhsl(60, 58%, 46%)
HSVhsv(60, 73%, 72%)
CMYKcmyk(0%, 0%, 73.4%, 27.8%)
CIE-LABlab(72.69, -15.68, 64.03)
CIE-LCHlch(72.69, 65.92, 103.76°)
OKLaboklab(75.92% -0.0499 0.141)
OKLCHoklch(75.92% 0.15 109.5)
XYZxyz(37.4634, 44.6942, 9.5585)
Luminance0.4469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B831 #3131B8
analogous
#B87431 #B8B831 #74B831
triadic
#B8B831 #31B8B8 #B831B8
tetradic
#B8B831 #31B874 #3131B8 #B83174
square
#B8B831 #31B874 #3131B8 #B83174
split-complementary
#B8B831 #3174B8 #7431B8
monochromatic
#575717 #888824 #B8B831 #D2D255 #DEDE85

Accessibility & contrast

On white

2.11
#B8B831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.94
#B8B831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B831
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B831#FFFFFF#000000##000000
##B8B8311.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B015
Deuteranopia (green-blind)
#C9B43C
Tritanopia (blue-blind)
#C5AC9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b8b831;
/* rgb */ color: rgb(184, 184, 49);
/* oklch */ color: oklch(75.9% 0.150 109.5);
Tailwind
colors: {
  custom: {
    50: '#d1cd73',
    500: '#b8b831',
    950: '#000000',
  },
}
SCSS
$custom: #b8b831;
$custom-light: #d1cd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b831",
  "rgb": {
    "r": 184,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75919,
    "c": 0.14955,
    "h": 109.5
  },
  "luminance": 0.44693
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B8B831

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

Preview Lab → · Contrast checker → · Palette generator →

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