#B22EB6#B22EB6

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

Color values

HEX#B22EB6
RGBrgb(178, 46, 182)
HSLhsl(298, 60%, 45%)
HSVhsv(298, 75%, 71%)
CMYKcmyk(2.2%, 74.7%, 0%, 28.6%)
CIE-LABlab(45.36, 67.35, -43.89)
CIE-LCHlch(45.36, 80.39, 326.91°)
OKLaboklab(55.83% 0.186 -0.1219)
OKLCHoklch(55.83% 0.222 326.8)
XYZxyz(27.7801, 14.7983, 45.6401)
Luminance0.1480 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EB6 #32B62E
analogous
#6E2EB6 #B22EB6 #B62E76
triadic
#B22EB6 #B6B22E #2EB6B2
tetradic
#B22EB6 #B66E2E #32B62E #2E76B6
square
#B22EB6 #B66E2E #32B62E #2E76B6
split-complementary
#B22EB6 #76B62E #2EB66E
monochromatic
#521554 #822285 #B22EB6 #CF4FD2 #DC80DF

Accessibility & contrast

On white

5.30
#B22EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B22EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22EB6
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EB6#FFFFFF#000000##FFFFFF
##B22EB61.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0261BA
Deuteranopia (green-blind)
#5071B3
Tritanopia (blue-blind)
#B74570
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22eb6;
/* rgb */ color: rgb(178, 46, 182);
/* oklch */ color: oklch(55.8% 0.222 326.8);
Tailwind
colors: {
  custom: {
    50: '#cd75cc',
    500: '#b22eb6',
    950: '#000000',
  },
}
SCSS
$custom: #b22eb6;
$custom-light: #cd75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22eb6",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 298.235,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5583,
    "c": 0.22242,
    "h": 326.8
  },
  "luminance": 0.14796
}

Semantic roles & 50–950 ramp

primary
#B22EB6
secondary
#7BC878
accent
#E3454A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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