#B5A02A#B5A02A

#B5A02A is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.4% C 0.133 H 98.6°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#B5A02A
RGBrgb(181, 160, 42)
HSLhsl(51, 62%, 44%)
HSVhsv(51, 77%, 71%)
CMYKcmyk(0%, 11.6%, 76.8%, 29%)
CIE-LABlab(65.85, -4.81, 59.94)
CIE-LCHlch(65.85, 60.13, 94.59°)
OKLaboklab(70.4% -0.0198 0.1311)
OKLCHoklch(70.4% 0.133 98.6)
XYZxyz(32.0464, 35.1342, 7.2836)
Luminance0.3513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A02A #2A3FB5
analogous
#B55A2A #B5A02A #84B52A
triadic
#B5A02A #2AB5A0 #A02AB5
tetradic
#B5A02A #2AB55A #2A3FB5 #B52A84
square
#B5A02A #2AB55A #2A3FB5 #B52A84
split-complementary
#B5A02A #2A84B5 #5A2AB5
monochromatic
#524813 #83741E #B5A02A #D4BF48 #E0D079

Accessibility & contrast

On white

2.62
#B5A02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#B5A02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A02A
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A02A#FFFFFF#000000##000000
##B5A02A1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C11
Deuteranopia (green-blind)
#B6A332
Tritanopia (blue-blind)
#C4948A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b5a02a;
/* rgb */ color: rgb(181, 160, 42);
/* oklch */ color: oklch(70.4% 0.133 98.6);
Tailwind
colors: {
  custom: {
    50: '#cfbb6d',
    500: '#b5a02a',
    950: '#000000',
  },
}
SCSS
$custom: #b5a02a;
$custom-light: #cfbb6d;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a02a",
  "rgb": {
    "r": 181,
    "g": 160,
    "b": 42
  },
  "hsl": {
    "h": 50.935,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.70402,
    "c": 0.13257,
    "h": 98.6
  },
  "luminance": 0.35133
}

Semantic roles & 50–950 ramp

primary
#B5A02A
secondary
#7380C8
accent
#5BE542
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B

Preview Lab

Preview with #B5A02A

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

Preview Lab → · Contrast checker → · Palette generator →

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