#B22AB5#B22AB5

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

Color values

HEX#B22AB5
RGBrgb(178, 42, 181)
HSLhsl(299, 62%, 44%)
HSVhsv(299, 77%, 71%)
CMYKcmyk(1.7%, 76.8%, 0%, 29%)
CIE-LABlab(44.88, 68.38, -44.06)
CIE-LCHlch(44.88, 81.34, 327.21°)
OKLaboklab(55.47% 0.1894 -0.1224)
OKLCHoklch(55.47% 0.226 327.1)
XYZxyz(27.5281, 14.4591, 45.0481)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AB5 #2DB52A
analogous
#6C2AB5 #B22AB5 #B52A72
triadic
#B22AB5 #B5B22A #2AB5B2
tetradic
#B22AB5 #B56C2A #2DB52A #2A72B5
square
#B22AB5 #B56C2A #2DB52A #2A72B5
split-complementary
#B22AB5 #72B52A #2AB56C
monochromatic
#501352 #811E83 #B22AB5 #D148D4 #DE79E0

Accessibility & contrast

On white

5.40
#B22AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B22AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AB5
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AB5#FFFFFF#000000##FFFFFF
##B22AB51.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#4F70B2
Tritanopia (blue-blind)
#B7426F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22ab5;
/* rgb */ color: rgb(178, 42, 181);
/* oklch */ color: oklch(55.5% 0.226 327.1);
Tailwind
colors: {
  custom: {
    50: '#cd74cc',
    500: '#b22ab5',
    950: '#000000',
  },
}
SCSS
$custom: #b22ab5;
$custom-light: #cd74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ab5",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 298.705,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55475,
    "c": 0.2255,
    "h": 327.1
  },
  "luminance": 0.14457
}

Semantic roles & 50–950 ramp

primary
#B22AB5
secondary
#75C873
accent
#E54246
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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