#B5B22A#B5B22A

#B5B22A is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.3% C 0.148 H 108.2°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#B5B22A
RGBrgb(181, 178, 42)
HSLhsl(59, 62%, 44%)
HSVhsv(59, 77%, 71%)
CMYKcmyk(0%, 1.7%, 76.8%, 29%)
CIE-LABlab(70.76, -14.22, 64.44)
CIE-LCHlch(70.76, 65.99, 102.44°)
OKLaboklab(74.3% -0.0463 0.1407)
OKLCHoklch(74.3% 0.148 108.2)
XYZxyz(35.3958, 41.8329, 8.4001)
Luminance0.4183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B22A #2A2DB5
analogous
#B56C2A #B5B22A #72B52A
triadic
#B5B22A #2AB5B2 #B22AB5
tetradic
#B5B22A #2AB56C #2A2DB5 #B52A72
square
#B5B22A #2AB56C #2A2DB5 #B52A72
split-complementary
#B5B22A #2A72B5 #6C2AB5
monochromatic
#525013 #83811E #B5B22A #D4D148 #E0DE79

Accessibility & contrast

On white

2.24
#B5B22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#B5B22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B22A
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B22A#FFFFFF#000000##000000
##B5B22A1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB04
Deuteranopia (green-blind)
#C3AF35
Tritanopia (blue-blind)
#C2A699
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b22a;
/* rgb */ color: rgb(181, 178, 42);
/* oklch */ color: oklch(74.3% 0.148 108.2);
Tailwind
colors: {
  custom: {
    50: '#cfc86f',
    500: '#b5b22a',
    950: '#000000',
  },
}
SCSS
$custom: #b5b22a;
$custom-light: #cfc86f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b22a",
  "rgb": {
    "r": 181,
    "g": 178,
    "b": 42
  },
  "hsl": {
    "h": 58.705,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.74302,
    "c": 0.14809,
    "h": 108.2
  },
  "luminance": 0.41832
}

Semantic roles & 50–950 ramp

primary
#B5B22A
secondary
#7375C8
accent
#46E542
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B22A

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

Preview Lab → · Contrast checker → · Palette generator →

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