#B8AC31#B8AC31

#B8AC31 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.3% C 0.138 H 103.6°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#B8AC31
RGBrgb(184, 172, 49)
HSLhsl(55, 58%, 46%)
HSVhsv(55, 73%, 72%)
CMYKcmyk(0%, 6.5%, 73.4%, 27.8%)
CIE-LABlab(69.41, -9.51, 60.91)
CIE-LCHlch(69.41, 61.65, 98.88°)
OKLaboklab(73.3% -0.0326 0.1344)
OKLCHoklch(73.3% 0.138 103.6)
XYZxyz(35.0756, 39.9186, 8.7626)
Luminance0.3992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AC31 #313DB8
analogous
#B86931 #B8AC31 #80B831
triadic
#B8AC31 #31B8AC #AC31B8
tetradic
#B8AC31 #31B869 #313DB8 #B83180
square
#B8AC31 #31B869 #313DB8 #B83180
split-complementary
#B8AC31 #3180B8 #6931B8
monochromatic
#575217 #887F24 #B8AC31 #D2C755 #DED785

Accessibility & contrast

On white

2.34
#B8AC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#B8AC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AC31
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AC31#FFFFFF#000000##000000
##B8AC311.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA61A
Deuteranopia (green-blind)
#C0AC3A
Tritanopia (blue-blind)
#C6A094
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b8ac31;
/* rgb */ color: rgb(184, 172, 49);
/* oklch */ color: oklch(73.3% 0.138 103.6);
Tailwind
colors: {
  custom: {
    50: '#d1c472',
    500: '#b8ac31',
    950: '#000000',
  },
}
SCSS
$custom: #b8ac31;
$custom-light: #d1c472;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ac31",
  "rgb": {
    "r": 184,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 54.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.73305,
    "c": 0.13827,
    "h": 103.6
  },
  "luminance": 0.39917
}

Semantic roles & 50–950 ramp

primary
#B8AC31
secondary
#7D84C8
accent
#54E147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B8AC31

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

Preview Lab → · Contrast checker → · Palette generator →

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