#B22EB2#B22EB2

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

Color values

HEX#B22EB2
RGBrgb(178, 46, 178)
HSLhsl(300, 59%, 44%)
HSVhsv(300, 74%, 70%)
CMYKcmyk(0%, 74.2%, 0%, 30.2%)
CIE-LABlab(45.13, 66.70, -41.90)
CIE-LCHlch(45.13, 78.76, 327.86°)
OKLaboklab(55.6% 0.1861 -0.1161)
OKLCHoklch(55.6% 0.219 328)
XYZxyz(27.3726, 14.6353, 43.4940)
Luminance0.1463 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EB2 #2EB22E
analogous
#702EB2 #B22EB2 #B22E70
triadic
#B22EB2 #B2B22E #2EB2B2
tetradic
#B22EB2 #B2702E #2EB22E #2E70B2
square
#B22EB2 #B2702E #2EB22E #2E70B2
split-complementary
#B22EB2 #70B22E #2EB270
monochromatic
#511551 #812181 #B22EB2 #D14CD1 #DD7DDD

Accessibility & contrast

On white

5.35
#B22EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B22EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22EB2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EB2#FFFFFF#000000##FFFFFF
##B22EB21.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1060B6
Deuteranopia (green-blind)
#5371AF
Tritanopia (blue-blind)
#B8436E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22eb2;
/* rgb */ color: rgb(178, 46, 178);
/* oklch */ color: oklch(55.6% 0.219 328.0);
Tailwind
colors: {
  custom: {
    50: '#cd75c9',
    500: '#b22eb2',
    950: '#000000',
  },
}
SCSS
$custom: #b22eb2;
$custom-light: #cd75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22eb2",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55596,
    "c": 0.21936,
    "h": 328
  },
  "luminance": 0.14633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B22EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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