#B5AB2D#B5AB2D

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

Color values

HEX#B5AB2D
RGBrgb(181, 171, 45)
HSLhsl(56, 60%, 44%)
HSVhsv(56, 75%, 71%)
CMYKcmyk(0%, 5.5%, 75.1%, 29%)
CIE-LABlab(68.85, -10.48, 61.70)
CIE-LCHlch(68.85, 62.58, 99.64°)
OKLaboklab(72.79% -0.0355 0.1354)
OKLCHoklch(72.79% 0.14 104.7)
XYZxyz(34.0941, 39.1404, 8.2411)
Luminance0.3914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB2D #2D37B5
analogous
#B5672D #B5AB2D #7BB52D
triadic
#B5AB2D #2DB5AB #AB2DB5
tetradic
#B5AB2D #2DB567 #2D37B5 #B52D7B
square
#B5AB2D #2DB567 #2D37B5 #B52D7B
split-complementary
#B5AB2D #2D7BB5 #672DB5
monochromatic
#534E15 #847D21 #B5AB2D #D3C94D #DFD87E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #b5ab2d;
/* rgb */ color: rgb(181, 171, 45);
/* oklch */ color: oklch(72.8% 0.140 104.7);
Tailwind
colors: {
  custom: {
    50: '#cfc370',
    500: '#b5ab2d',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab2d;
$custom-light: #cfc370;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab2d",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 55.588,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.7279,
    "c": 0.13999,
    "h": 104.7
  },
  "luminance": 0.39139
}

Semantic roles & 50–950 ramp

primary
#B5AB2D
secondary
#767CC7
accent
#50E344
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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