#B22FA1#B22FA1

#B22FA1 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.7% C 0.206 H 333.9°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B22FA1
RGBrgb(178, 47, 161)
HSLhsl(308, 58%, 44%)
HSVhsv(308, 74%, 70%)
CMYKcmyk(0%, 73.6%, 9.6%, 30.2%)
CIE-LABlab(44.34, 63.70, -33.06)
CIE-LCHlch(44.34, 71.77, 332.57°)
OKLaboklab(54.74% 0.1847 -0.0906)
OKLCHoklch(54.74% 0.206 333.9)
XYZxyz(25.8099, 14.0734, 35.0684)
Luminance0.1407 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FA1 #2FB240
analogous
#822FB2 #B22FA1 #B22F60
triadic
#B22FA1 #A1B22F #2FA1B2
tetradic
#B22FA1 #B2822F #2FB240 #2F60B2
square
#B22FA1 #B2822F #2FB240 #2F60B2
split-complementary
#B22FA1 #60B22F #2FB282
monochromatic
#511549 #822275 #B22FA1 #D04EBF #DD7ED1

Accessibility & contrast

On white

5.51
#B22FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B22FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FA1
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FA1#FFFFFF#000000##FFFFFF
##B22FA11.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA4
Deuteranopia (green-blind)
#5C709E
Tritanopia (blue-blind)
#BA3B65
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22fa1;
/* rgb */ color: rgb(178, 47, 161);
/* oklch */ color: oklch(54.7% 0.206 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd75bd',
    500: '#b22fa1',
    950: '#000000',
  },
}
SCSS
$custom: #b22fa1;
$custom-light: #cd75bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fa1",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 307.786,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54736,
    "c": 0.20573,
    "h": 333.9
  },
  "luminance": 0.14071
}

Semantic roles & 50–950 ramp

primary
#B22FA1
secondary
#77C681
accent
#E15A46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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