#B22ED3#B22ED3

#B22ED3 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.7% C 0.245 H 318.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B22ED3
RGBrgb(178, 46, 211)
HSLhsl(288, 65%, 50%)
HSVhsv(288, 78%, 83%)
CMYKcmyk(15.6%, 78.2%, 0%, 17.3%)
CIE-LABlab(47.14, 72.38, -57.88)
CIE-LCHlch(47.14, 92.68, 321.35°)
OKLaboklab(57.66% 0.1835 -0.1628)
OKLCHoklch(57.66% 0.245 318.4)
XYZxyz(31.0933, 16.1236, 63.0897)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22ED3 #4FD32E
analogous
#5F2ED3 #B22ED3 #D32EA1
triadic
#B22ED3 #D3B22E #2ED3B2
tetradic
#B22ED3 #D35F2E #4FD32E #2EA1D3
square
#B22ED3 #D35F2E #4FD32E #2EA1D3
split-complementary
#B22ED3 #A1D32E #2ED35F
monochromatic
#5E176F #8822A2 #B22ED3 #C561DE #D793E8

Accessibility & contrast

On white

4.97
#B22ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B22ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22ED3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22ED3#FFFFFF#000000##FFFFFF
##B22ED31.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#3774CF
Tritanopia (blue-blind)
#B15381
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b22ed3;
/* rgb */ color: rgb(178, 46, 211);
/* oklch */ color: oklch(57.7% 0.245 318.4);
Tailwind
colors: {
  custom: {
    50: '#ce76e1',
    500: '#b22ed3',
    950: '#000000',
  },
}
SCSS
$custom: #b22ed3;
$custom-light: #ce76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ed3",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 288,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5766,
    "c": 0.24531,
    "h": 318.4
  },
  "luminance": 0.16122
}

Semantic roles & 50–950 ramp

primary
#B22ED3
secondary
#98D38A
accent
#E84061
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B22ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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