#B8AB2B#B8AB2B

#B8AB2B is a light, vivid yellow. Relative luminance 0.395; OKLCH L 73.1% C 0.141 H 103.3°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#B8AB2B
RGBrgb(184, 171, 43)
HSLhsl(54, 62%, 45%)
HSVhsv(54, 77%, 72%)
CMYKcmyk(0%, 7.1%, 76.6%, 27.8%)
CIE-LABlab(69.11, -9.25, 62.70)
CIE-LCHlch(69.11, 63.38, 98.39°)
OKLaboklab(73.05% -0.0324 0.1371)
OKLCHoklch(73.05% 0.141 103.3)
XYZxyz(34.7677, 39.4921, 8.0764)
Luminance0.3949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AB2B #2B38B8
analogous
#B8652B #B8AB2B #7FB82B
triadic
#B8AB2B #2BB8AB #AB2BB8
tetradic
#B8AB2B #2BB865 #2B38B8 #B82B7F
square
#B8AB2B #2BB865 #2B38B8 #B82B7F
split-complementary
#B8AB2B #2B7FB8 #652BB8
monochromatic
#554F14 #867D1F #B8AB2B #D5C84B #E1D77D

Accessibility & contrast

On white

2.36
#B8AB2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#B8AB2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AB2B
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AB2B#FFFFFF#000000##000000
##B8AB2B1.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA50D
Deuteranopia (green-blind)
#BFAB35
Tritanopia (blue-blind)
#C69F93
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b8ab2b;
/* rgb */ color: rgb(184, 171, 43);
/* oklch */ color: oklch(73.1% 0.141 103.3);
Tailwind
colors: {
  custom: {
    50: '#d1c36f',
    500: '#b8ab2b',
    950: '#000000',
  },
}
SCSS
$custom: #b8ab2b;
$custom-light: #d1c36f;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ab2b",
  "rgb": {
    "r": 184,
    "g": 171,
    "b": 43
  },
  "hsl": {
    "h": 54.468,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73052,
    "c": 0.14083,
    "h": 103.3
  },
  "luminance": 0.39491
}

Semantic roles & 50–950 ramp

primary
#B8AB2B
secondary
#767DC9
accent
#52E543
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8AB2B

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

Preview Lab → · Contrast checker → · Palette generator →

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