#B4AB31#B4AB31

#B4AB31 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.7% C 0.138 H 105.1°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#B4AB31
RGBrgb(180, 171, 49)
HSLhsl(56, 57%, 45%)
HSVhsv(56, 73%, 71%)
CMYKcmyk(0%, 5%, 72.8%, 29.4%)
CIE-LABlab(68.79, -10.74, 60.19)
CIE-LCHlch(68.79, 61.14, 100.12°)
OKLaboklab(72.73% -0.0358 0.133)
OKLCHoklch(72.73% 0.138 105.1)
XYZxyz(33.9411, 39.0522, 8.6551)
Luminance0.3905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AB31 #313AB4
analogous
#B46A31 #B4AB31 #7BB431
triadic
#B4AB31 #31B4AB #AB31B4
tetradic
#B4AB31 #31B46A #313AB4 #B4317B
square
#B4AB31 #31B46A #313AB4 #B4317B
split-complementary
#B4AB31 #317BB4 #6A31B4
monochromatic
#545017 #847D24 #B4AB31 #D0C752 #DDD782

Accessibility & contrast

On white

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

On black

8.81
#B4AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AB31
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AB31#FFFFFF#000000##000000
##B4AB311.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51B
Deuteranopia (green-blind)
#BDAA3A
Tritanopia (blue-blind)
#C19F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b4ab31;
/* rgb */ color: rgb(180, 171, 49);
/* oklch */ color: oklch(72.7% 0.138 105.1);
Tailwind
colors: {
  custom: {
    50: '#cec372',
    500: '#b4ab31',
    950: '#000000',
  },
}
SCSS
$custom: #b4ab31;
$custom-light: #cec372;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ab31",
  "rgb": {
    "r": 180,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 55.878,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.72726,
    "c": 0.13775,
    "h": 105.1
  },
  "luminance": 0.39051
}

Semantic roles & 50–950 ramp

primary
#B4AB31
secondary
#7B80C6
accent
#52E047
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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