#B4AB2A#B4AB2A

#B4AB2A is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.142 H 105.3°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#B4AB2A
RGBrgb(180, 171, 42)
HSLhsl(56, 62%, 44%)
HSVhsv(56, 77%, 71%)
CMYKcmyk(0%, 5%, 76.7%, 29.4%)
CIE-LABlab(68.75, -11.04, 62.57)
CIE-LCHlch(68.75, 63.54, 100.01°)
OKLaboklab(72.68% -0.0373 0.1368)
OKLCHoklch(72.68% 0.142 105.3)
XYZxyz(33.8047, 38.9976, 7.9367)
Luminance0.3900 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AB2A #2A33B4
analogous
#B4662A #B4AB2A #78B42A
triadic
#B4AB2A #2AB4AB #AB2AB4
tetradic
#B4AB2A #2AB466 #2A33B4 #B42A78
square
#B4AB2A #2AB466 #2A33B4 #B42A78
split-complementary
#B4AB2A #2A78B4 #662AB4
monochromatic
#514D13 #827C1E #B4AB2A #D4CB47 #E0D979

Accessibility & contrast

On white

2.39
#B4AB2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#B4AB2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AB2A
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AB2A#FFFFFF#000000##000000
##B4AB2A1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA50A
Deuteranopia (green-blind)
#BEAA34
Tritanopia (blue-blind)
#C29F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b4ab2a;
/* rgb */ color: rgb(180, 171, 42);
/* oklch */ color: oklch(72.7% 0.142 105.3);
Tailwind
colors: {
  custom: {
    50: '#cec36e',
    500: '#b4ab2a',
    950: '#000000',
  },
}
SCSS
$custom: #b4ab2a;
$custom-light: #cec36e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ab2a",
  "rgb": {
    "r": 180,
    "g": 171,
    "b": 42
  },
  "hsl": {
    "h": 56.087,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72682,
    "c": 0.14175,
    "h": 105.3
  },
  "luminance": 0.38996
}

Semantic roles & 50–950 ramp

primary
#B4AB2A
secondary
#7278C8
accent
#4DE543
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4AB2A

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

Preview Lab → · Contrast checker → · Palette generator →

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