#B4AB30#B4AB30

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

Color values

HEX#B4AB30
RGBrgb(180, 171, 48)
HSLhsl(56, 58%, 45%)
HSVhsv(56, 73%, 71%)
CMYKcmyk(0%, 5%, 73.3%, 29.4%)
CIE-LABlab(68.78, -10.79, 60.55)
CIE-LCHlch(68.78, 61.50, 100.10°)
OKLaboklab(72.72% -0.036 0.1336)
OKLCHoklch(72.72% 0.138 105.1)
XYZxyz(33.9202, 39.0438, 8.5452)
Luminance0.3904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AB30 #3039B4
analogous
#B46930 #B4AB30 #7BB430
triadic
#B4AB30 #30B4AB #AB30B4
tetradic
#B4AB30 #30B469 #3039B4 #B4307B
square
#B4AB30 #30B469 #3039B4 #B4307B
split-complementary
#B4AB30 #307BB4 #6930B4
monochromatic
#534F16 #847D23 #B4AB30 #D1C851 #DDD781

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4AB30#FFFFFF#000000##000000
##B4AB301.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)
#BAA519
Deuteranopia (green-blind)
#BDAA39
Tritanopia (blue-blind)
#C29F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b4ab30;
/* rgb */ color: rgb(180, 171, 48);
/* oklch */ color: oklch(72.7% 0.138 105.1);
Tailwind
colors: {
  custom: {
    50: '#cec371',
    500: '#b4ab30',
    950: '#000000',
  },
}
SCSS
$custom: #b4ab30;
$custom-light: #cec371;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ab30",
  "rgb": {
    "r": 180,
    "g": 171,
    "b": 48
  },
  "hsl": {
    "h": 55.909,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.72719,
    "c": 0.13836,
    "h": 105.1
  },
  "luminance": 0.39043
}

Semantic roles & 50–950 ramp

primary
#B4AB30
secondary
#797FC6
accent
#51E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4AB30

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

Preview Lab → · Contrast checker → · Palette generator →

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