#B22EA8#B22EA8

#B22EA8 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.0% C 0.212 H 331.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B22EA8
RGBrgb(178, 46, 168)
HSLhsl(305, 59%, 44%)
HSVhsv(305, 74%, 70%)
CMYKcmyk(0%, 74.2%, 5.6%, 30.2%)
CIE-LABlab(44.59, 65.10, -36.84)
CIE-LCHlch(44.59, 74.80, 330.49°)
OKLaboklab(55.03% 0.186 -0.1015)
OKLCHoklch(55.03% 0.212 331.4)
XYZxyz(26.4050, 14.2483, 38.3977)
Luminance0.1425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EA8 #2EB238
analogous
#7A2EB2 #B22EA8 #B22E66
triadic
#B22EA8 #A8B22E #2EA8B2
tetradic
#B22EA8 #B27A2E #2EB238 #2E66B2
square
#B22EA8 #B27A2E #2EB238 #2E66B2
split-complementary
#B22EA8 #66B22E #2EB27A
monochromatic
#51154C #81217A #B22EA8 #D14CC7 #DD7DD6

Accessibility & contrast

On white

5.46
#B22EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B22EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22EA8
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EA8#FFFFFF#000000##FFFFFF
##B22EA81.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225EAB
Deuteranopia (green-blind)
#5870A5
Tritanopia (blue-blind)
#B93E69
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22ea8;
/* rgb */ color: rgb(178, 46, 168);
/* oklch */ color: oklch(55.0% 0.212 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd75c2',
    500: '#b22ea8',
    950: '#000000',
  },
}
SCSS
$custom: #b22ea8;
$custom-light: #cd75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ea8",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 304.545,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55031,
    "c": 0.21188,
    "h": 331.4
  },
  "luminance": 0.14246
}

Semantic roles & 50–950 ramp

primary
#B22EA8
secondary
#76C67C
accent
#E25246
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B22EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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