#B5A72A#B5A72A

#B5A72A is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.9% C 0.138 H 102.7°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#B5A72A
RGBrgb(181, 167, 42)
HSLhsl(54, 62%, 44%)
HSVhsv(54, 77%, 71%)
CMYKcmyk(0%, 7.7%, 76.8%, 29%)
CIE-LABlab(67.75, -8.52, 61.69)
CIE-LCHlch(67.75, 62.27, 97.86°)
OKLaboklab(71.91% -0.0303 0.1348)
OKLCHoklch(71.91% 0.138 102.7)
XYZxyz(33.2942, 37.6298, 7.6996)
Luminance0.3763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A72A #2A38B5
analogous
#B5612A #B5A72A #7DB52A
triadic
#B5A72A #2AB5A7 #A72AB5
tetradic
#B5A72A #2AB561 #2A38B5 #B52A7D
square
#B5A72A #2AB561 #2A38B5 #B52A7D
split-complementary
#B5A72A #2A7DB5 #612AB5
monochromatic
#524B13 #83791E #B5A72A #D4C648 #E0D679

Accessibility & contrast

On white

2.46
#B5A72A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#B5A72A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A72A
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A72A#FFFFFF#000000##000000
##B5A72A1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A20D
Deuteranopia (green-blind)
#BBA833
Tritanopia (blue-blind)
#C39B8F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b5a72a;
/* rgb */ color: rgb(181, 167, 42);
/* oklch */ color: oklch(71.9% 0.138 102.7);
Tailwind
colors: {
  custom: {
    50: '#cfc06e',
    500: '#b5a72a',
    950: '#000000',
  },
}
SCSS
$custom: #b5a72a;
$custom-light: #cfc06e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a72a",
  "rgb": {
    "r": 181,
    "g": 167,
    "b": 42
  },
  "hsl": {
    "h": 53.957,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.71905,
    "c": 0.13817,
    "h": 102.7
  },
  "luminance": 0.37628
}

Semantic roles & 50–950 ramp

primary
#B5A72A
secondary
#737BC8
accent
#53E542
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A72A

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

Preview Lab → · Contrast checker → · Palette generator →

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