#B5B22B#B5B22B

#B5B22B 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#B5B22B
RGBrgb(181, 178, 43)
HSLhsl(59, 62%, 44%)
HSVhsv(59, 76%, 71%)
CMYKcmyk(0%, 1.7%, 76.2%, 29%)
CIE-LABlab(70.76, -14.18, 64.13)
CIE-LCHlch(70.76, 65.67, 102.47°)
OKLaboklab(74.31% -0.0461 0.1402)
OKLCHoklch(74.31% 0.148 108.2)
XYZxyz(35.4139, 41.8401, 8.4955)
Luminance0.4184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B22B #2B2EB5
analogous
#B56D2B #B5B22B #73B52B
triadic
#B5B22B #2BB5B2 #B22BB5
tetradic
#B5B22B #2BB56D #2B2EB5 #B52B73
square
#B5B22B #2BB56D #2B2EB5 #B52B73
split-complementary
#B5B22B #2B73B5 #6D2BB5
monochromatic
#525114 #84811F #B5B22B #D4D149 #E0DD7B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5B22B#FFFFFF#000000##000000
##B5B22B1.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)
#C1AB07
Deuteranopia (green-blind)
#C3AF36
Tritanopia (blue-blind)
#C2A699
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b22b;
/* rgb */ color: rgb(181, 178, 43);
/* oklch */ color: oklch(74.3% 0.148 108.2);
Tailwind
colors: {
  custom: {
    50: '#cfc870',
    500: '#b5b22b',
    950: '#000000',
  },
}
SCSS
$custom: #b5b22b;
$custom-light: #cfc870;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b22b",
  "rgb": {
    "r": 181,
    "g": 178,
    "b": 43
  },
  "hsl": {
    "h": 58.696,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.74307,
    "c": 0.14757,
    "h": 108.2
  },
  "luminance": 0.41839
}

Semantic roles & 50–950 ramp

primary
#B5B22B
secondary
#7476C8
accent
#47E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B22B

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

Preview Lab → · Contrast checker → · Palette generator →

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