#B22AA8#B22AA8

#B22AA8 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.216 H 331.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B22AA8
RGBrgb(178, 42, 168)
HSLhsl(304, 62%, 43%)
HSVhsv(304, 76%, 70%)
CMYKcmyk(0%, 76.4%, 5.6%, 30.2%)
CIE-LABlab(44.16, 66.32, -37.51)
CIE-LCHlch(44.16, 76.19, 330.51°)
OKLaboklab(54.73% 0.1895 -0.1034)
OKLCHoklch(54.73% 0.216 331.4)
XYZxyz(26.2560, 13.9502, 38.3480)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AA8 #2AB234
analogous
#782AB2 #B22AA8 #B22A64
triadic
#B22AA8 #A8B22A #2AA8B2
tetradic
#B22AA8 #B2782A #2AB234 #2A64B2
square
#B22AA8 #B2782A #2AB234 #2A64B2
split-complementary
#B22AA8 #64B22A #2AB278
monochromatic
#4F134B #801E79 #B22AA8 #D346C9 #DF77D7

Accessibility & contrast

On white

5.54
#B22AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B22AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AA8
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AA8#FFFFFF#000000##FFFFFF
##B22AA81.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CAB
Deuteranopia (green-blind)
#576FA5
Tritanopia (blue-blind)
#B93B68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22aa8;
/* rgb */ color: rgb(178, 42, 168);
/* oklch */ color: oklch(54.7% 0.216 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd73c2',
    500: '#b22aa8',
    950: '#000000',
  },
}
SCSS
$custom: #b22aa8;
$custom-light: #cd73c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b22aa8",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 304.412,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54727,
    "c": 0.2159,
    "h": 331.4
  },
  "luminance": 0.13948
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B22AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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