#B5A22A#B5A22A

#B5A22A is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.8% C 0.134 H 99.8°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#B5A22A
RGBrgb(181, 162, 42)
HSLhsl(52, 62%, 44%)
HSVhsv(52, 77%, 71%)
CMYKcmyk(0%, 10.5%, 76.8%, 29%)
CIE-LABlab(66.39, -5.88, 60.44)
CIE-LCHlch(66.39, 60.72, 95.55°)
OKLaboklab(70.83% -0.0228 0.1322)
OKLCHoklch(70.83% 0.134 99.8)
XYZxyz(32.3959, 35.8332, 7.4001)
Luminance0.3583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A22A #2A3DB5
analogous
#B55C2A #B5A22A #82B52A
triadic
#B5A22A #2AB5A2 #A22AB5
tetradic
#B5A22A #2AB55C #2A3DB5 #B52A82
square
#B5A22A #2AB55C #2A3DB5 #B52A82
split-complementary
#B5A22A #2A82B5 #5C2AB5
monochromatic
#524913 #83761E #B5A22A #D4C148 #E0D279

Accessibility & contrast

On white

2.57
#B5A22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#B5A22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A22A
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A22A#FFFFFF#000000##000000
##B5A22A1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D10
Deuteranopia (green-blind)
#B7A432
Tritanopia (blue-blind)
#C3968B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a22a;
/* rgb */ color: rgb(181, 162, 42);
/* oklch */ color: oklch(70.8% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#cfbd6d',
    500: '#b5a22a',
    950: '#000000',
  },
}
SCSS
$custom: #b5a22a;
$custom-light: #cfbd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a22a",
  "rgb": {
    "r": 181,
    "g": 162,
    "b": 42
  },
  "hsl": {
    "h": 51.799,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.70829,
    "c": 0.13411,
    "h": 99.8
  },
  "luminance": 0.35832
}

Semantic roles & 50–950 ramp

primary
#B5A22A
secondary
#737EC8
accent
#59E542
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A22A

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

Preview Lab → · Contrast checker → · Palette generator →

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