#B22AA7#B22AA7

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

Color values

HEX#B22AA7
RGBrgb(178, 42, 167)
HSLhsl(305, 62%, 43%)
HSVhsv(305, 76%, 70%)
CMYKcmyk(0%, 76.4%, 6.2%, 30.2%)
CIE-LABlab(44.11, 66.17, -37.00)
CIE-LCHlch(44.11, 75.81, 330.78°)
OKLaboklab(54.67% 0.1895 -0.1019)
OKLCHoklch(54.67% 0.215 331.7)
XYZxyz(26.1632, 13.9131, 37.8593)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AA7 #2AB235
analogous
#792AB2 #B22AA7 #B22A63
triadic
#B22AA7 #A7B22A #2AA7B2
tetradic
#B22AA7 #B2792A #2AB235 #2A63B2
square
#B22AA7 #B2792A #2AB235 #2A63B2
split-complementary
#B22AA7 #63B22A #2AB279
monochromatic
#4F134A #801E79 #B22AA7 #D346C8 #DF77D7

Accessibility & contrast

On white

5.55
#B22AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B22AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AA7
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AA7#FFFFFF#000000##FFFFFF
##B22AA71.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5CAA
Deuteranopia (green-blind)
#576FA4
Tritanopia (blue-blind)
#BA3B67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22aa7;
/* rgb */ color: rgb(178, 42, 167);
/* oklch */ color: oklch(54.7% 0.215 331.7);
Tailwind
colors: {
  custom: {
    50: '#cd73c1',
    500: '#b22aa7',
    950: '#000000',
  },
}
SCSS
$custom: #b22aa7;
$custom-light: #cd73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b22aa7",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 304.853,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54671,
    "c": 0.21518,
    "h": 331.7
  },
  "luminance": 0.13911
}

Semantic roles & 50–950 ramp

primary
#B22AA7
secondary
#71C778
accent
#E55043
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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