#B22EB3#B22EB3

#B22EB3 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.220 H 327.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B22EB3
RGBrgb(178, 46, 179)
HSLhsl(300, 59%, 44%)
HSVhsv(300, 74%, 70%)
CMYKcmyk(0.6%, 74.3%, 0%, 29.8%)
CIE-LABlab(45.19, 66.86, -42.40)
CIE-LCHlch(45.19, 79.17, 327.62°)
OKLaboklab(55.65% 0.1861 -0.1176)
OKLCHoklch(55.65% 0.22 327.7)
XYZxyz(27.4734, 14.6756, 44.0247)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EB3 #2FB32E
analogous
#702EB3 #B22EB3 #B32E72
triadic
#B22EB3 #B3B22E #2EB3B2
tetradic
#B22EB3 #B3702E #2FB32E #2E72B3
square
#B22EB3 #B3702E #2FB32E #2E72B3
split-complementary
#B22EB3 #72B32E #2EB370
monochromatic
#511552 #822182 #B22EB3 #D04DD1 #DD7EDE

Accessibility & contrast

On white

5.34
#B22EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B22EB3
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EB3#FFFFFF#000000##FFFFFF
##B22EB31.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D60B7
Deuteranopia (green-blind)
#5271B0
Tritanopia (blue-blind)
#B7446F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22eb3;
/* rgb */ color: rgb(178, 46, 179);
/* oklch */ color: oklch(55.7% 0.220 327.7);
Tailwind
colors: {
  custom: {
    50: '#cd75ca',
    500: '#b22eb3',
    950: '#000000',
  },
}
SCSS
$custom: #b22eb3;
$custom-light: #cd75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b22eb3",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 299.549,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55654,
    "c": 0.22013,
    "h": 327.7
  },
  "luminance": 0.14674
}

Semantic roles & 50–950 ramp

primary
#B22EB3
secondary
#77C676
accent
#E24647
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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