#B1AB52#B1AB52

#B1AB52 is a light, moderate yellow. Relative luminance 0.391; OKLCH L 72.8% C 0.112 H 105.3°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#B1AB52
RGBrgb(177, 171, 82)
HSLhsl(56, 38%, 51%)
HSVhsv(56, 54%, 69%)
CMYKcmyk(0%, 3.4%, 53.7%, 30.6%)
CIE-LABlab(68.81, -9.87, 45.95)
CIE-LCHlch(68.81, 47.00, 102.13°)
OKLaboklab(72.77% -0.0295 0.1077)
OKLCHoklch(72.77% 0.112 105.3)
XYZxyz(34.2183, 39.0832, 13.7223)
Luminance0.3908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AB52 #5258B1
analogous
#B17B52 #B1AB52 #87B152
triadic
#B1AB52 #52B1AB #AB52B1
tetradic
#B1AB52 #52B17B #5258B1 #B15287
square
#B1AB52 #52B17B #5258B1 #B15287
split-complementary
#B1AB52 #5287B1 #7B52B1
monochromatic
#5E5B2A #88843D #B1AB52 #C4BF7C #D7D4A6

Accessibility & contrast

On white

2.38
#B1AB52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#B1AB52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1AB52
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1AB52#FFFFFF#000000##000000
##B1AB521.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A649
Deuteranopia (green-blind)
#BAAA56
Tritanopia (blue-blind)
#BCA197
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b1ab52;
/* rgb */ color: rgb(177, 171, 82);
/* oklch */ color: oklch(72.8% 0.112 105.3);
Tailwind
colors: {
  custom: {
    50: '#cac385',
    500: '#b1ab52',
    950: '#000000',
  },
}
SCSS
$custom: #b1ab52;
$custom-light: #cac385;
$custom-dark: #000000;
JSON
{
  "hex": "#b1ab52",
  "rgb": {
    "r": 177,
    "g": 171,
    "b": 82
  },
  "hsl": {
    "h": 56.211,
    "s": 37.849,
    "l": 50.784
  },
  "oklch": {
    "l": 0.72772,
    "c": 0.11168,
    "h": 105.3
  },
  "luminance": 0.39082
}

Semantic roles & 50–950 ramp

primary
#B1AB52
secondary
#9A9DC4
accent
#61CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#14120B
muted
#82817C

Preview Lab

Preview with #B1AB52

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

Preview Lab → · Contrast checker → · Palette generator →

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