#B22AA1#B22AA1

#B22AA1 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.211 H 333.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B22AA1
RGBrgb(178, 42, 161)
HSLhsl(308, 62%, 43%)
HSVhsv(308, 76%, 70%)
CMYKcmyk(0%, 76.4%, 9.6%, 30.2%)
CIE-LABlab(43.79, 65.26, -33.92)
CIE-LCHlch(43.79, 73.55, 332.54°)
OKLaboklab(54.35% 0.1893 -0.093)
OKLCHoklch(54.35% 0.211 333.8)
XYZxyz(25.6213, 13.6964, 35.0056)
Luminance0.1369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AA1 #2AB23B
analogous
#7F2AB2 #B22AA1 #B22A5D
triadic
#B22AA1 #A1B22A #2AA1B2
tetradic
#B22AA1 #B27F2A #2AB23B #2A5DB2
square
#B22AA1 #B27F2A #2AB23B #2A5DB2
split-complementary
#B22AA1 #5DB22A #2AB27F
monochromatic
#4F1347 #801E74 #B22AA1 #D346C2 #DF77D2

Accessibility & contrast

On white

5.62
#B22AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#B22AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AA1
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AA1#FFFFFF#000000##FFFFFF
##B22AA11.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265BA4
Deuteranopia (green-blind)
#5A6E9E
Tritanopia (blue-blind)
#BA3864
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b22aa1;
/* rgb */ color: rgb(178, 42, 161);
/* oklch */ color: oklch(54.3% 0.211 333.8);
Tailwind
colors: {
  custom: {
    50: '#cd73bd',
    500: '#b22aa1',
    950: '#000000',
  },
}
SCSS
$custom: #b22aa1;
$custom-light: #cd73bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22aa1",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 307.5,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54345,
    "c": 0.21089,
    "h": 333.8
  },
  "luminance": 0.13694
}

Semantic roles & 50–950 ramp

primary
#B22AA1
secondary
#71C77C
accent
#E55743
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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