#B22AA9#B22AA9

#B22AA9 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.217 H 331.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#B22AA9
RGBrgb(178, 42, 169)
HSLhsl(304, 62%, 43%)
HSVhsv(304, 76%, 70%)
CMYKcmyk(0%, 76.4%, 5.1%, 30.2%)
CIE-LABlab(44.22, 66.47, -38.02)
CIE-LCHlch(44.22, 76.58, 330.23°)
OKLaboklab(54.78% 0.1896 -0.1048)
OKLCHoklch(54.78% 0.217 331.1)
XYZxyz(26.3495, 13.9876, 38.8405)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AA9 #2AB233
analogous
#772AB2 #B22AA9 #B22A65
triadic
#B22AA9 #A9B22A #2AA9B2
tetradic
#B22AA9 #B2772A #2AB233 #2A65B2
square
#B22AA9 #B2772A #2AB233 #2A65B2
split-complementary
#B22AA9 #65B22A #2AB277
monochromatic
#4F134B #801E7A #B22AA9 #D346CA #DF77D8

Accessibility & contrast

On white

5.53
#B22AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#B22AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AA9
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AA9#FFFFFF#000000##FFFFFF
##B22AA91.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5DAC
Deuteranopia (green-blind)
#566FA6
Tritanopia (blue-blind)
#B93C68
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22aa9;
/* rgb */ color: rgb(178, 42, 169);
/* oklch */ color: oklch(54.8% 0.217 331.1);
Tailwind
colors: {
  custom: {
    50: '#cd73c3',
    500: '#b22aa9',
    950: '#000000',
  },
}
SCSS
$custom: #b22aa9;
$custom-light: #cd73c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b22aa9",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 303.971,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54782,
    "c": 0.21663,
    "h": 331.1
  },
  "luminance": 0.13985
}

Semantic roles & 50–950 ramp

primary
#B22AA9
secondary
#71C777
accent
#E54E43
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B22AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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