#B8AB52#B8AB52

#B8AB52 is a light, moderate yellow. Relative luminance 0.399; OKLCH L 73.4% C 0.112 H 101.1°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#B8AB52
RGBrgb(184, 171, 82)
HSLhsl(52, 42%, 52%)
HSVhsv(52, 55%, 72%)
CMYKcmyk(0%, 7.1%, 55.4%, 27.8%)
CIE-LABlab(69.42, -6.90, 46.81)
CIE-LCHlch(69.42, 47.32, 98.39°)
OKLaboklab(73.4% -0.0215 0.1094)
OKLCHoklch(73.4% 0.112 101.1)
XYZxyz(35.8543, 39.9267, 13.7990)
Luminance0.3992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AB52 #525FB8
analogous
#B87852 #B8AB52 #92B852
triadic
#B8AB52 #52B8AB #AB52B8
tetradic
#B8AB52 #52B878 #525FB8 #B85292
square
#B8AB52 #52B878 #525FB8 #B85292
split-complementary
#B8AB52 #5292B8 #7852B8
monochromatic
#665E2A #91863C #B8AB52 #CAC07D #DCD5A9

Accessibility & contrast

On white

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

On black

8.99
#B8AB52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AB52
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AB52#FFFFFF#000000##000000
##B8AB521.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A649
Deuteranopia (green-blind)
#BDAC56
Tritanopia (blue-blind)
#C5A097
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b8ab52;
/* rgb */ color: rgb(184, 171, 82);
/* oklch */ color: oklch(73.4% 0.112 101.1);
Tailwind
colors: {
  custom: {
    50: '#d0c385',
    500: '#b8ab52',
    950: '#000000',
  },
}
SCSS
$custom: #b8ab52;
$custom-light: #d0c385;
$custom-dark: #000000;
JSON
{
  "hex": "#b8ab52",
  "rgb": {
    "r": 184,
    "g": 171,
    "b": 82
  },
  "hsl": {
    "h": 52.353,
    "s": 41.803,
    "l": 52.157
  },
  "oklch": {
    "l": 0.73398,
    "c": 0.1115,
    "h": 101.1
  },
  "luminance": 0.39925
}

Semantic roles & 50–950 ramp

primary
#B8AB52
secondary
#9DA2C9
accent
#66D256
background
#FDFBF8
surface
#FAF7EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #B8AB52

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

Preview Lab → · Contrast checker → · Palette generator →

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