#B22AB6#B22AB6

#B22AB6 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.5% C 0.226 H 326.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B22AB6
RGBrgb(178, 42, 182)
HSLhsl(298, 63%, 44%)
HSVhsv(298, 77%, 71%)
CMYKcmyk(2.2%, 76.9%, 0%, 28.6%)
CIE-LABlab(44.94, 68.54, -44.55)
CIE-LCHlch(44.94, 81.75, 326.98°)
OKLaboklab(55.54% 0.1894 -0.1238)
OKLCHoklch(55.54% 0.226 326.8)
XYZxyz(27.6311, 14.5003, 45.5904)
Luminance0.1450 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AB6 #2EB62A
analogous
#6C2AB6 #B22AB6 #B62A74
triadic
#B22AB6 #B6B22A #2AB6B2
tetradic
#B22AB6 #B66C2A #2EB62A #2A74B6
square
#B22AB6 #B66C2A #2EB62A #2A74B6
split-complementary
#B22AB6 #74B62A #2AB66C
monochromatic
#511353 #811F84 #B22AB6 #D148D5 #DD7AE0

Accessibility & contrast

On white

5.39
#B22AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B22AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AB6
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AB6#FFFFFF#000000##FFFFFF
##B22AB61.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBA
Deuteranopia (green-blind)
#4E70B3
Tritanopia (blue-blind)
#B7436F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22ab6;
/* rgb */ color: rgb(178, 42, 182);
/* oklch */ color: oklch(55.5% 0.226 326.8);
Tailwind
colors: {
  custom: {
    50: '#cd74cc',
    500: '#b22ab6',
    950: '#000000',
  },
}
SCSS
$custom: #b22ab6;
$custom-light: #cd74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ab6",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 298.286,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55535,
    "c": 0.22626,
    "h": 326.8
  },
  "luminance": 0.14498
}

Semantic roles & 50–950 ramp

primary
#B22AB6
secondary
#76C873
accent
#E64247
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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