#B22EB4#B22EB4

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

Color values

HEX#B22EB4
RGBrgb(178, 46, 180)
HSLhsl(299, 59%, 44%)
HSVhsv(299, 74%, 71%)
CMYKcmyk(1.1%, 74.4%, 0%, 29.4%)
CIE-LABlab(45.24, 67.02, -42.90)
CIE-LCHlch(45.24, 79.57, 327.38°)
OKLaboklab(55.71% 0.1861 -0.119)
OKLCHoklch(55.71% 0.221 327.4)
XYZxyz(27.5749, 14.7162, 44.5593)
Luminance0.1471 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EB4 #30B42E
analogous
#6F2EB4 #B22EB4 #B42E73
triadic
#B22EB4 #B4B22E #2EB4B2
tetradic
#B22EB4 #B46F2E #30B42E #2E73B4
square
#B22EB4 #B46F2E #30B42E #2E73B4
split-complementary
#B22EB4 #73B42E #2EB46F
monochromatic
#521553 #822283 #B22EB4 #D04ED2 #DD7EDE

Accessibility & contrast

On white

5.33
#B22EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B22EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22EB4
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EB4#FFFFFF#000000##FFFFFF
##B22EB41.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A60B8
Deuteranopia (green-blind)
#5171B1
Tritanopia (blue-blind)
#B7446F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22eb4;
/* rgb */ color: rgb(178, 46, 180);
/* oklch */ color: oklch(55.7% 0.221 327.4);
Tailwind
colors: {
  custom: {
    50: '#cd75cb',
    500: '#b22eb4',
    950: '#000000',
  },
}
SCSS
$custom: #b22eb4;
$custom-light: #cd75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b22eb4",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 299.104,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55713,
    "c": 0.22089,
    "h": 327.4
  },
  "luminance": 0.14714
}

Semantic roles & 50–950 ramp

primary
#B22EB4
secondary
#78C777
accent
#E24548
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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