#B4AB2F#B4AB2F

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

Color values

HEX#B4AB2F
RGBrgb(180, 171, 47)
HSLhsl(56, 59%, 45%)
HSVhsv(56, 74%, 71%)
CMYKcmyk(0%, 5%, 73.9%, 29.4%)
CIE-LABlab(68.78, -10.83, 60.90)
CIE-LCHlch(68.78, 61.86, 100.09°)
OKLaboklab(72.71% -0.0363 0.1341)
OKLCHoklch(72.71% 0.139 105.1)
XYZxyz(33.8998, 39.0357, 8.4377)
Luminance0.3903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AB2F #2F38B4
analogous
#B4692F #B4AB2F #7BB42F
triadic
#B4AB2F #2FB4AB #AB2FB4
tetradic
#B4AB2F #2FB469 #2F38B4 #B42F7B
square
#B4AB2F #2FB469 #2F38B4 #B42F7B
split-complementary
#B4AB2F #2F7BB4 #692FB4
monochromatic
#534F16 #837D22 #B4AB2F #D1C84F #DED780

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4AB2F#FFFFFF#000000##000000
##B4AB2F1.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)
#BAA517
Deuteranopia (green-blind)
#BDAA38
Tritanopia (blue-blind)
#C29F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b4ab2f;
/* rgb */ color: rgb(180, 171, 47);
/* oklch */ color: oklch(72.7% 0.139 105.1);
Tailwind
colors: {
  custom: {
    50: '#cec371',
    500: '#b4ab2f',
    950: '#000000',
  },
}
SCSS
$custom: #b4ab2f;
$custom-light: #cec371;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ab2f",
  "rgb": {
    "r": 180,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 55.94,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72713,
    "c": 0.13895,
    "h": 105.1
  },
  "luminance": 0.39034
}

Semantic roles & 50–950 ramp

primary
#B4AB2F
secondary
#787DC7
accent
#51E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4AB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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