#B22CA1#B22CA1

#B22CA1 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.209 H 333.9°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#B22CA1
RGBrgb(178, 44, 161)
HSLhsl(308, 60%, 44%)
HSVhsv(308, 75%, 70%)
CMYKcmyk(0%, 75.3%, 9.6%, 30.2%)
CIE-LABlab(44.01, 64.65, -33.59)
CIE-LCHlch(44.01, 72.86, 332.55°)
OKLaboklab(54.5% 0.1875 -0.0921)
OKLCHoklch(54.5% 0.209 333.9)
XYZxyz(25.6940, 13.8418, 35.0298)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22CA1 #2CB23D
analogous
#802CB2 #B22CA1 #B22C5E
triadic
#B22CA1 #A1B22C #2CA1B2
tetradic
#B22CA1 #B2802C #2CB23D #2C5EB2
square
#B22CA1 #B2802C #2CB23D #2C5EB2
split-complementary
#B22CA1 #5EB22C #2CB280
monochromatic
#501448 #812075 #B22CA1 #D249C1 #DE7AD1

Accessibility & contrast

On white

5.57
#B22CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B22CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22CA1
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22CA1#FFFFFF#000000##FFFFFF
##B22CA11.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA4
Deuteranopia (green-blind)
#5B6F9E
Tritanopia (blue-blind)
#BA3964
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22ca1;
/* rgb */ color: rgb(178, 44, 161);
/* oklch */ color: oklch(54.5% 0.209 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd74bd',
    500: '#b22ca1',
    950: '#000000',
  },
}
SCSS
$custom: #b22ca1;
$custom-light: #cd74bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ca1",
  "rgb": {
    "r": 178,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 307.612,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54496,
    "c": 0.20889,
    "h": 333.9
  },
  "luminance": 0.1384
}

Semantic roles & 50–950 ramp

primary
#B22CA1
secondary
#73C67E
accent
#E45844
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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