#B22EA1#B22EA1

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

Color values

HEX#B22EA1
RGBrgb(178, 46, 161)
HSLhsl(308, 59%, 44%)
HSVhsv(308, 74%, 70%)
CMYKcmyk(0%, 74.2%, 9.6%, 30.2%)
CIE-LABlab(44.22, 64.03, -33.24)
CIE-LCHlch(44.22, 72.14, 332.56°)
OKLaboklab(54.65% 0.1857 -0.0911)
OKLCHoklch(54.65% 0.207 333.9)
XYZxyz(25.7703, 13.9944, 35.0552)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EA1 #2EB23F
analogous
#812EB2 #B22EA1 #B22E5F
triadic
#B22EA1 #A1B22E #2EA1B2
tetradic
#B22EA1 #B2812E #2EB23F #2E5FB2
square
#B22EA1 #B2812E #2EB23F #2E5FB2
split-complementary
#B22EA1 #5FB22E #2EB281
monochromatic
#511549 #812175 #B22EA1 #D14CC0 #DD7DD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B22EA1#FFFFFF#000000##FFFFFF
##B22EA11.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)
#2A5CA4
Deuteranopia (green-blind)
#5B6F9E
Tritanopia (blue-blind)
#BA3B65
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22ea1;
/* rgb */ color: rgb(178, 46, 161);
/* oklch */ color: oklch(54.7% 0.207 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd74bd',
    500: '#b22ea1',
    950: '#000000',
  },
}
SCSS
$custom: #b22ea1;
$custom-light: #cd74bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ea1",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 307.727,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54654,
    "c": 0.2068,
    "h": 333.9
  },
  "luminance": 0.13992
}

Semantic roles & 50–950 ramp

primary
#B22EA1
secondary
#76C680
accent
#E25A46
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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