#B5AB2F#B5AB2F

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

Color values

HEX#B5AB2F
RGBrgb(181, 171, 47)
HSLhsl(56, 59%, 45%)
HSVhsv(56, 74%, 71%)
CMYKcmyk(0%, 5.5%, 74%, 29%)
CIE-LABlab(68.86, -10.39, 61.01)
CIE-LCHlch(68.86, 61.89, 99.67°)
OKLaboklab(72.8% -0.0351 0.1343)
OKLCHoklch(72.8% 0.139 104.6)
XYZxyz(34.1335, 39.1562, 8.4487)
Luminance0.3916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB2F #2F39B5
analogous
#B5682F #B5AB2F #7CB52F
triadic
#B5AB2F #2FB5AB #AB2FB5
tetradic
#B5AB2F #2FB568 #2F39B5 #B52F7C
square
#B5AB2F #2FB568 #2F39B5 #B52F7C
split-complementary
#B5AB2F #2F7CB5 #682FB5
monochromatic
#544F16 #847D22 #B5AB2F #D1C850 #DED780

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5AB2F#FFFFFF#000000##000000
##B5AB2F1.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)
#BAA517
Deuteranopia (green-blind)
#BEAB38
Tritanopia (blue-blind)
#C39F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b5ab2f;
/* rgb */ color: rgb(181, 171, 47);
/* oklch */ color: oklch(72.8% 0.139 104.6);
Tailwind
colors: {
  custom: {
    50: '#cfc371',
    500: '#b5ab2f',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab2f;
$custom-light: #cfc371;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab2f",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 55.522,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.72803,
    "c": 0.13885,
    "h": 104.6
  },
  "luminance": 0.39155
}

Semantic roles & 50–950 ramp

primary
#B5AB2F
secondary
#797FC7
accent
#51E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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