#B5AB2E#B5AB2E

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

Color values

HEX#B5AB2E
RGBrgb(181, 171, 46)
HSLhsl(56, 59%, 45%)
HSVhsv(56, 75%, 71%)
CMYKcmyk(0%, 5.5%, 74.6%, 29%)
CIE-LABlab(68.86, -10.44, 61.36)
CIE-LCHlch(68.86, 62.24, 99.65°)
OKLaboklab(72.8% -0.0353 0.1349)
OKLCHoklch(72.8% 0.139 104.7)
XYZxyz(34.1136, 39.1482, 8.3437)
Luminance0.3915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AB2E #2E38B5
analogous
#B5682E #B5AB2E #7BB52E
triadic
#B5AB2E #2EB5AB #AB2EB5
tetradic
#B5AB2E #2EB568 #2E38B5 #B52E7B
square
#B5AB2E #2EB568 #2E38B5 #B52E7B
split-complementary
#B5AB2E #2E7BB5 #682EB5
monochromatic
#534F15 #847D22 #B5AB2E #D2C84E #DED77F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5AB2E#FFFFFF#000000##000000
##B5AB2E1.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)
#BAA515
Deuteranopia (green-blind)
#BEAA37
Tritanopia (blue-blind)
#C39F93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b5ab2e;
/* rgb */ color: rgb(181, 171, 46);
/* oklch */ color: oklch(72.8% 0.139 104.7);
Tailwind
colors: {
  custom: {
    50: '#cfc370',
    500: '#b5ab2e',
    950: '#000000',
  },
}
SCSS
$custom: #b5ab2e;
$custom-light: #cfc370;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ab2e",
  "rgb": {
    "r": 181,
    "g": 171,
    "b": 46
  },
  "hsl": {
    "h": 55.556,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72796,
    "c": 0.13943,
    "h": 104.7
  },
  "luminance": 0.39147
}

Semantic roles & 50–950 ramp

primary
#B5AB2E
secondary
#787DC7
accent
#51E345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AB2E

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

Preview Lab → · Contrast checker → · Palette generator →

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