#B4AB3A#B4AB3A

#B4AB3A is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.8% C 0.132 H 104.8°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#B4AB3A
RGBrgb(180, 171, 58)
HSLhsl(56, 51%, 47%)
HSVhsv(56, 68%, 71%)
CMYKcmyk(0%, 5%, 67.8%, 29.4%)
CIE-LABlab(68.85, -10.27, 56.79)
CIE-LCHlch(68.85, 57.71, 100.25°)
OKLaboklab(72.79% -0.0336 0.1274)
OKLCHoklch(72.79% 0.132 104.8)
XYZxyz(34.1504, 39.1359, 9.7573)
Luminance0.3913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AB3A #3A43B4
analogous
#B46E3A #B4AB3A #80B43A
triadic
#B4AB3A #3AB4AB #AB3AB4
tetradic
#B4AB3A #3AB46E #3A43B4 #B43A80
square
#B4AB3A #3AB46E #3A43B4 #B43A80
split-complementary
#B4AB3A #3A80B4 #6E3AB4
monochromatic
#57531C #867F2B #B4AB3A #CCC460 #DBD58E

Accessibility & contrast

On white

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

On black

8.83
#B4AB3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AB3A
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AB3A#FFFFFF#000000##000000
##B4AB3A1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA52A
Deuteranopia (green-blind)
#BDAA41
Tritanopia (blue-blind)
#C1A094
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b4ab3a;
/* rgb */ color: rgb(180, 171, 58);
/* oklch */ color: oklch(72.8% 0.132 104.8);
Tailwind
colors: {
  custom: {
    50: '#cec377',
    500: '#b4ab3a',
    950: '#000000',
  },
}
SCSS
$custom: #b4ab3a;
$custom-light: #cec377;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ab3a",
  "rgb": {
    "r": 180,
    "g": 171,
    "b": 58
  },
  "hsl": {
    "h": 55.574,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.72793,
    "c": 0.13177,
    "h": 104.8
  },
  "luminance": 0.39135
}

Semantic roles & 50–950 ramp

primary
#B4AB3A
secondary
#8589C5
accent
#58DB4D
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4AB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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