#B22AB2#B22AB2

#B22AB2 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.3% C 0.223 H 328.1°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B22AB2
RGBrgb(178, 42, 178)
HSLhsl(300, 62%, 43%)
HSVhsv(300, 76%, 70%)
CMYKcmyk(0%, 76.4%, 0%, 30.2%)
CIE-LABlab(44.71, 67.90, -42.56)
CIE-LCHlch(44.71, 80.13, 327.92°)
OKLaboklab(55.3% 0.1895 -0.118)
OKLCHoklch(55.3% 0.223 328.1)
XYZxyz(27.2236, 14.3373, 43.4444)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AB2 #2AB22A
analogous
#6E2AB2 #B22AB2 #B22A6E
triadic
#B22AB2 #B2B22A #2AB2B2
tetradic
#B22AB2 #B26E2A #2AB22A #2A6EB2
square
#B22AB2 #B26E2A #2AB22A #2A6EB2
split-complementary
#B22AB2 #6EB22A #2AB26E
monochromatic
#4F134F #801E80 #B22AB2 #D346D3 #DF77DF

Accessibility & contrast

On white

5.43
#B22AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B22AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AB2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AB2#FFFFFF#000000##FFFFFF
##B22AB21.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035FB6
Deuteranopia (green-blind)
#5170AF
Tritanopia (blue-blind)
#B8416D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22ab2;
/* rgb */ color: rgb(178, 42, 178);
/* oklch */ color: oklch(55.3% 0.223 328.1);
Tailwind
colors: {
  custom: {
    50: '#cd73c9',
    500: '#b22ab2',
    950: '#000000',
  },
}
SCSS
$custom: #b22ab2;
$custom-light: #cd73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ab2",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55298,
    "c": 0.22326,
    "h": 328.1
  },
  "luminance": 0.14335
}

Semantic roles & 50–950 ramp

primary
#B22AB2
secondary
#71C771
accent
#E54343
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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