#B8AD31#B8AD31

#B8AD31 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.5% C 0.139 H 104.2°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#B8AD31
RGBrgb(184, 173, 49)
HSLhsl(55, 58%, 46%)
HSVhsv(55, 73%, 72%)
CMYKcmyk(0%, 6%, 73.4%, 27.8%)
CIE-LABlab(69.68, -10.03, 61.17)
CIE-LCHlch(69.68, 61.99, 99.32°)
OKLaboklab(73.52% -0.034 0.1349)
OKLCHoklch(73.52% 0.139 104.2)
XYZxyz(35.2666, 40.3007, 8.8263)
Luminance0.4030 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AD31 #313CB8
analogous
#B86931 #B8AD31 #7FB831
triadic
#B8AD31 #31B8AD #AD31B8
tetradic
#B8AD31 #31B869 #313CB8 #B8317F
square
#B8AD31 #31B869 #313CB8 #B8317F
split-complementary
#B8AD31 #317FB8 #6931B8
monochromatic
#575217 #888024 #B8AD31 #D2C755 #DED785

Accessibility & contrast

On white

2.32
#B8AD31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#B8AD31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AD31
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AD31#FFFFFF#000000##000000
##B8AD311.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA71A
Deuteranopia (green-blind)
#C0AD3A
Tritanopia (blue-blind)
#C6A195
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b8ad31;
/* rgb */ color: rgb(184, 173, 49);
/* oklch */ color: oklch(73.5% 0.139 104.2);
Tailwind
colors: {
  custom: {
    50: '#d1c572',
    500: '#b8ad31',
    950: '#000000',
  },
}
SCSS
$custom: #b8ad31;
$custom-light: #d1c572;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ad31",
  "rgb": {
    "r": 184,
    "g": 173,
    "b": 49
  },
  "hsl": {
    "h": 55.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.73521,
    "c": 0.13916,
    "h": 104.2
  },
  "luminance": 0.40299
}

Semantic roles & 50–950 ramp

primary
#B8AD31
secondary
#7D83C8
accent
#53E147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B8AD31

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

Preview Lab → · Contrast checker → · Palette generator →

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