#B22EB1#B22EB1

#B22EB1 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.219 H 328.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B22EB1
RGBrgb(178, 46, 177)
HSLhsl(300, 59%, 44%)
HSVhsv(300, 74%, 70%)
CMYKcmyk(0%, 74.2%, 0.6%, 30.2%)
CIE-LABlab(45.07, 66.53, -41.40)
CIE-LCHlch(45.07, 78.36, 328.11°)
OKLaboklab(55.54% 0.1861 -0.1147)
OKLCHoklch(55.54% 0.219 328.4)
XYZxyz(27.2726, 14.5953, 42.9672)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EB1 #2EB22F
analogous
#712EB2 #B22EB1 #B22E6F
triadic
#B22EB1 #B1B22E #2EB1B2
tetradic
#B22EB1 #B2712E #2EB22F #2E6FB2
square
#B22EB1 #B2712E #2EB22F #2E6FB2
split-complementary
#B22EB1 #6FB22E #2EB271
monochromatic
#511550 #812181 #B22EB1 #D14CD0 #DD7DDD

Accessibility & contrast

On white

5.36
#B22EB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B22EB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22EB1
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EB1#FFFFFF#000000##FFFFFF
##B22EB11.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1360B5
Deuteranopia (green-blind)
#5371AE
Tritanopia (blue-blind)
#B8436E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22eb1;
/* rgb */ color: rgb(178, 46, 177);
/* oklch */ color: oklch(55.5% 0.219 328.4);
Tailwind
colors: {
  custom: {
    50: '#cd75c9',
    500: '#b22eb1',
    950: '#000000',
  },
}
SCSS
$custom: #b22eb1;
$custom-light: #cd75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22eb1",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 300.455,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55538,
    "c": 0.2186,
    "h": 328.4
  },
  "luminance": 0.14593
}

Semantic roles & 50–950 ramp

primary
#B22EB1
secondary
#76C676
accent
#E24746
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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