#B5AB38#B5AB38

#B5AB38 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.9% C 0.133 H 104.3°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#B5AB38
RGBrgb(181, 171, 56)
HSLhsl(55, 53%, 46%)
HSVhsv(55, 69%, 71%)
CMYKcmyk(0%, 5.5%, 69.1%, 29%)
CIE-LABlab(68.92, -9.95, 57.70)
CIE-LCHlch(68.92, 58.55, 99.78°)
OKLaboklab(72.87% -0.0329 0.129)
OKLCHoklch(72.87% 0.133 104.3)
XYZxyz(34.3342, 39.2364, 9.5054)
Luminance0.3923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB38 #3842B5
analogous
#B56D38 #B5AB38 #81B538
triadic
#B5AB38 #38B5AB #AB38B5
tetradic
#B5AB38 #38B56D #3842B5 #B53881
square
#B5AB38 #38B56D #3842B5 #B53881
split-complementary
#B5AB38 #3881B5 #6D38B5
monochromatic
#58531B #867F2A #B5AB38 #CDC45D #DBD58C

Accessibility & contrast

On white

2.37
#B5AB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#B5AB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AB38
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AB38#FFFFFF#000000##000000
##B5AB381.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5ab38;
/* rgb */ color: rgb(181, 171, 56);
/* oklch */ color: oklch(72.9% 0.133 104.3);
Tailwind
colors: {
  custom: {
    50: '#cec375',
    500: '#b5ab38',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab38;
$custom-light: #cec375;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab38",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 55.2,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.72868,
    "c": 0.13309,
    "h": 104.3
  },
  "luminance": 0.39235
}

Semantic roles & 50–950 ramp

primary
#B5AB38
secondary
#8388C6
accent
#57DC4C
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B5AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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