#B4AB38#B4AB38

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

Color values

HEX#B4AB38
RGBrgb(180, 171, 56)
HSLhsl(56, 53%, 46%)
HSVhsv(56, 69%, 71%)
CMYKcmyk(0%, 5%, 68.9%, 29.4%)
CIE-LABlab(68.84, -10.38, 57.58)
CIE-LCHlch(68.84, 58.51, 100.22°)
OKLaboklab(72.78% -0.0341 0.1287)
OKLCHoklch(72.78% 0.133 104.8)
XYZxyz(34.1005, 39.1159, 9.4945)
Luminance0.3911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AB38 #3841B4
analogous
#B46D38 #B4AB38 #7FB438
triadic
#B4AB38 #38B4AB #AB38B4
tetradic
#B4AB38 #38B46D #3841B4 #B4387F
square
#B4AB38 #38B46D #3841B4 #B4387F
split-complementary
#B4AB38 #387FB4 #6D38B4
monochromatic
#57521B #857F29 #B4AB38 #CDC45D #DBD58B

Accessibility & contrast

On white

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

On black

8.82
#B4AB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AB38
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AB38#FFFFFF#000000##000000
##B4AB381.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA527
Deuteranopia (green-blind)
#BDAA3F
Tritanopia (blue-blind)
#C19F94
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b4ab38;
/* rgb */ color: rgb(180, 171, 56);
/* oklch */ color: oklch(72.8% 0.133 104.8);
Tailwind
colors: {
  custom: {
    50: '#cec375',
    500: '#b4ab38',
    950: '#000000',
  },
}
SCSS
$custom: #b4ab38;
$custom-light: #cec375;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ab38",
  "rgb": {
    "r": 180,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 55.645,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.72777,
    "c": 0.13318,
    "h": 104.8
  },
  "luminance": 0.39115
}

Semantic roles & 50–950 ramp

primary
#B4AB38
secondary
#8287C5
accent
#56DC4C
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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