#B5AB30#B5AB30

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

Color values

HEX#B5AB30
RGBrgb(181, 171, 48)
HSLhsl(55, 58%, 45%)
HSVhsv(55, 73%, 71%)
CMYKcmyk(0%, 5.5%, 73.5%, 29%)
CIE-LABlab(68.87, -10.35, 60.66)
CIE-LCHlch(68.87, 61.54, 99.68°)
OKLaboklab(72.81% -0.0349 0.1338)
OKLCHoklch(72.81% 0.138 104.6)
XYZxyz(34.1539, 39.1643, 8.5562)
Luminance0.3916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB30 #303AB5
analogous
#B56930 #B5AB30 #7CB530
triadic
#B5AB30 #30B5AB #AB30B5
tetradic
#B5AB30 #30B569 #303AB5 #B5307C
square
#B5AB30 #30B569 #303AB5 #B5307C
split-complementary
#B5AB30 #307CB5 #6930B5
monochromatic
#545016 #857D23 #B5AB30 #D1C751 #DED782

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5AB30#FFFFFF#000000##000000
##B5AB301.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)
#BAA519
Deuteranopia (green-blind)
#BEAB39
Tritanopia (blue-blind)
#C39F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b5ab30;
/* rgb */ color: rgb(181, 171, 48);
/* oklch */ color: oklch(72.8% 0.138 104.6);
Tailwind
colors: {
  custom: {
    50: '#cfc371',
    500: '#b5ab30',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab30;
$custom-light: #cfc371;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab30",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 48
  },
  "hsl": {
    "h": 55.489,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.72809,
    "c": 0.13825,
    "h": 104.6
  },
  "luminance": 0.39163
}

Semantic roles & 50–950 ramp

primary
#B5AB30
secondary
#7A80C7
accent
#52E146
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AB30

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

Preview Lab → · Contrast checker → · Palette generator →

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