#B22AB4#B22AB4

#B22AB4 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.225 H 327.4°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#B22AB4
RGBrgb(178, 42, 180)
HSLhsl(299, 62%, 44%)
HSVhsv(299, 77%, 71%)
CMYKcmyk(1.1%, 76.7%, 0%, 29.4%)
CIE-LABlab(44.83, 68.22, -43.56)
CIE-LCHlch(44.83, 80.94, 327.44°)
OKLaboklab(55.42% 0.1895 -0.1209)
OKLCHoklch(55.42% 0.225 327.4)
XYZxyz(27.4259, 14.4182, 44.5096)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AB4 #2CB42A
analogous
#6D2AB4 #B22AB4 #B42A71
triadic
#B22AB4 #B4B22A #2AB4B2
tetradic
#B22AB4 #B46D2A #2CB42A #2A71B4
square
#B22AB4 #B46D2A #2CB42A #2A71B4
split-complementary
#B22AB4 #71B42A #2AB46D
monochromatic
#501351 #811E82 #B22AB4 #D247D4 #DE79E0

Accessibility & contrast

On white

5.41
#B22AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#B22AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AB4
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AB4#FFFFFF#000000##FFFFFF
##B22AB41.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#5070B1
Tritanopia (blue-blind)
#B7426E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22ab4;
/* rgb */ color: rgb(178, 42, 180);
/* oklch */ color: oklch(55.4% 0.225 327.4);
Tailwind
colors: {
  custom: {
    50: '#cd74cb',
    500: '#b22ab4',
    950: '#000000',
  },
}
SCSS
$custom: #b22ab4;
$custom-light: #cd74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ab4",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 299.13,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55416,
    "c": 0.22476,
    "h": 327.4
  },
  "luminance": 0.14416
}

Semantic roles & 50–950 ramp

primary
#B22AB4
secondary
#73C872
accent
#E54345
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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