#B22EB5#B22EB5

#B22EB5 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.222 H 327.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B22EB5
RGBrgb(178, 46, 181)
HSLhsl(299, 59%, 45%)
HSVhsv(299, 75%, 71%)
CMYKcmyk(1.7%, 74.6%, 0%, 29%)
CIE-LABlab(45.30, 67.19, -43.39)
CIE-LCHlch(45.30, 79.98, 327.14°)
OKLaboklab(55.77% 0.1861 -0.1205)
OKLCHoklch(55.77% 0.222 327.1)
XYZxyz(27.6771, 14.7571, 45.0978)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EB5 #31B52E
analogous
#6F2EB5 #B22EB5 #B52E74
triadic
#B22EB5 #B5B22E #2EB5B2
tetradic
#B22EB5 #B56F2E #31B52E #2E74B5
square
#B22EB5 #B56F2E #31B52E #2E74B5
split-complementary
#B22EB5 #74B52E #2EB56F
monochromatic
#521553 #822284 #B22EB5 #CF4ED2 #DC7FDE

Accessibility & contrast

On white

5.32
#B22EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B22EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22EB5
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EB5#FFFFFF#000000##FFFFFF
##B22EB51.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0661B9
Deuteranopia (green-blind)
#5171B2
Tritanopia (blue-blind)
#B74570
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22eb5;
/* rgb */ color: rgb(178, 46, 181);
/* oklch */ color: oklch(55.8% 0.222 327.1);
Tailwind
colors: {
  custom: {
    50: '#cd75cc',
    500: '#b22eb5',
    950: '#000000',
  },
}
SCSS
$custom: #b22eb5;
$custom-light: #cd75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22eb5",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 298.667,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55771,
    "c": 0.22166,
    "h": 327.1
  },
  "luminance": 0.14755
}

Semantic roles & 50–950 ramp

primary
#B22EB5
secondary
#79C778
accent
#E34549
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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