#B5A22B#B5A22B

#B5A22B 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#B5A22B
RGBrgb(181, 162, 43)
HSLhsl(52, 62%, 44%)
HSVhsv(52, 76%, 71%)
CMYKcmyk(0%, 10.5%, 76.2%, 29%)
CIE-LABlab(66.40, -5.83, 60.10)
CIE-LCHlch(66.40, 60.38, 95.54°)
OKLaboklab(70.84% -0.0226 0.1316)
OKLCHoklch(70.84% 0.134 99.8)
XYZxyz(32.4140, 35.8404, 7.4956)
Luminance0.3584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A22B #2B3EB5
analogous
#B55D2B #B5A22B #83B52B
triadic
#B5A22B #2BB5A2 #A22BB5
tetradic
#B5A22B #2BB55D #2B3EB5 #B52B83
square
#B5A22B #2BB55D #2B3EB5 #B52B83
split-complementary
#B5A22B #2B83B5 #5D2BB5
monochromatic
#524914 #84761F #B5A22B #D4C149 #E0D27B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A22B#FFFFFF#000000##000000
##B5A22B1.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)
#B29D12
Deuteranopia (green-blind)
#B7A433
Tritanopia (blue-blind)
#C3968B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a22b;
/* rgb */ color: rgb(181, 162, 43);
/* oklch */ color: oklch(70.8% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#cfbd6e',
    500: '#b5a22b',
    950: '#000000',
  },
}
SCSS
$custom: #b5a22b;
$custom-light: #cfbd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a22b",
  "rgb": {
    "r": 181,
    "g": 162,
    "b": 43
  },
  "hsl": {
    "h": 51.739,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70836,
    "c": 0.13355,
    "h": 99.8
  },
  "luminance": 0.35839
}

Semantic roles & 50–950 ramp

primary
#B5A22B
secondary
#7480C8
accent
#59E543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A22B

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

Preview Lab → · Contrast checker → · Palette generator →

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