#B4AB2D#B4AB2D

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

Color values

HEX#B4AB2D
RGBrgb(180, 171, 45)
HSLhsl(56, 60%, 44%)
HSVhsv(56, 75%, 71%)
CMYKcmyk(0%, 5%, 75%, 29.4%)
CIE-LABlab(68.77, -10.92, 61.59)
CIE-LCHlch(68.77, 62.55, 100.05°)
OKLaboklab(72.7% -0.0367 0.1352)
OKLCHoklch(72.7% 0.14 105.2)
XYZxyz(33.8604, 39.0199, 8.2301)
Luminance0.3902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AB2D #2D36B4
analogous
#B4682D #B4AB2D #7AB42D
triadic
#B4AB2D #2DB4AB #AB2DB4
tetradic
#B4AB2D #2DB468 #2D36B4 #B42D7A
square
#B4AB2D #2DB468 #2D36B4 #B42D7A
split-complementary
#B4AB2D #2D7AB4 #682DB4
monochromatic
#524E15 #837C21 #B4AB2D #D2C94C #DED87D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4AB2D#FFFFFF#000000##000000
##B4AB2D1.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)
#BAA512
Deuteranopia (green-blind)
#BEAA36
Tritanopia (blue-blind)
#C29F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b4ab2d;
/* rgb */ color: rgb(180, 171, 45);
/* oklch */ color: oklch(72.7% 0.140 105.2);
Tailwind
colors: {
  custom: {
    50: '#cec370',
    500: '#b4ab2d',
    950: '#000000',
  },
}
SCSS
$custom: #b4ab2d;
$custom-light: #cec370;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ab2d",
  "rgb": {
    "r": 180,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 56,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.727,
    "c": 0.1401,
    "h": 105.2
  },
  "luminance": 0.39019
}

Semantic roles & 50–950 ramp

primary
#B4AB2D
secondary
#767BC7
accent
#4FE345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4AB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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