#B8AB37#B8AB37

#B8AB37 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 73.1% C 0.134 H 102.8°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#B8AB37
RGBrgb(184, 171, 55)
HSLhsl(54, 54%, 47%)
HSVhsv(54, 70%, 72%)
CMYKcmyk(0%, 7.1%, 70.1%, 27.8%)
CIE-LABlab(69.18, -8.70, 58.43)
CIE-LCHlch(69.18, 59.08, 98.47°)
OKLaboklab(73.13% -0.0297 0.1302)
OKLCHoklch(73.13% 0.134 102.8)
XYZxyz(35.0212, 39.5935, 9.4113)
Luminance0.3959 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AB37 #3744B8
analogous
#B86A37 #B8AB37 #85B837
triadic
#B8AB37 #37B8AB #AB37B8
tetradic
#B8AB37 #37B86A #3744B8 #B83785
square
#B8AB37 #37B86A #3744B8 #B83785
split-complementary
#B8AB37 #3785B8 #6A37B8
monochromatic
#5A531B #897F29 #B8AB37 #CFC35D #DDD58D

Accessibility & contrast

On white

2.35
#B8AB37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#B8AB37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AB37
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AB37#FFFFFF#000000##000000
##B8AB371.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA625
Deuteranopia (green-blind)
#BEAC3E
Tritanopia (blue-blind)
#C69F94
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b8ab37;
/* rgb */ color: rgb(184, 171, 55);
/* oklch */ color: oklch(73.1% 0.134 102.8);
Tailwind
colors: {
  custom: {
    50: '#d1c375',
    500: '#b8ab37',
    950: '#000000',
  },
}
SCSS
$custom: #b8ab37;
$custom-light: #d1c375;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ab37",
  "rgb": {
    "r": 184,
    "g": 171,
    "b": 55
  },
  "hsl": {
    "h": 53.953,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.73133,
    "c": 0.13356,
    "h": 102.8
  },
  "luminance": 0.39592
}

Semantic roles & 50–950 ramp

primary
#B8AB37
secondary
#848AC7
accent
#59DD4A
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B8AB37

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

Preview Lab → · Contrast checker → · Palette generator →

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