#B5A52A#B5A52A

#B5A52A is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.5% C 0.137 H 101.5°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#B5A52A
RGBrgb(181, 165, 42)
HSLhsl(53, 62%, 44%)
HSVhsv(53, 77%, 71%)
CMYKcmyk(0%, 8.8%, 76.8%, 29%)
CIE-LABlab(67.20, -7.46, 61.19)
CIE-LCHlch(67.20, 61.64, 96.95°)
OKLaboklab(71.47% -0.0273 0.1338)
OKLCHoklch(71.47% 0.137 101.5)
XYZxyz(32.9307, 36.9027, 7.5784)
Luminance0.3690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A52A #2A3AB5
analogous
#B55F2A #B5A52A #7FB52A
triadic
#B5A52A #2AB5A5 #A52AB5
tetradic
#B5A52A #2AB55F #2A3AB5 #B52A7F
square
#B5A52A #2AB55F #2A3AB5 #B52A7F
split-complementary
#B5A52A #2A7FB5 #5F2AB5
monochromatic
#524A13 #83781E #B5A52A #D4C448 #E0D479

Accessibility & contrast

On white

2.51
#B5A52A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#B5A52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A52A
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A52A#FFFFFF#000000##000000
##B5A52A1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A00E
Deuteranopia (green-blind)
#BAA633
Tritanopia (blue-blind)
#C3998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b5a52a;
/* rgb */ color: rgb(181, 165, 42);
/* oklch */ color: oklch(71.5% 0.137 101.5);
Tailwind
colors: {
  custom: {
    50: '#cfbf6e',
    500: '#b5a52a',
    950: '#000000',
  },
}
SCSS
$custom: #b5a52a;
$custom-light: #cfbf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a52a",
  "rgb": {
    "r": 181,
    "g": 165,
    "b": 42
  },
  "hsl": {
    "h": 53.094,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.71474,
    "c": 0.13651,
    "h": 101.5
  },
  "luminance": 0.36901
}

Semantic roles & 50–950 ramp

primary
#B5A52A
secondary
#737DC8
accent
#55E542
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A52A

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

Preview Lab → · Contrast checker → · Palette generator →

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