#B22EB8#B22EB8

#B22EB8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.224 H 326.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B22EB8
RGBrgb(178, 46, 184)
HSLhsl(297, 60%, 45%)
HSVhsv(297, 75%, 72%)
CMYKcmyk(3.3%, 75%, 0%, 27.8%)
CIE-LABlab(45.47, 67.68, -44.88)
CIE-LCHlch(45.47, 81.21, 326.45°)
OKLaboklab(55.95% 0.186 -0.1248)
OKLCHoklch(55.95% 0.224 326.1)
XYZxyz(27.9883, 14.8816, 46.7364)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EB8 #34B82E
analogous
#6D2EB8 #B22EB8 #B82E79
triadic
#B22EB8 #B8B22E #2EB8B2
tetradic
#B22EB8 #B86D2E #34B82E #2E79B8
square
#B22EB8 #B86D2E #34B82E #2E79B8
split-complementary
#B22EB8 #79B82E #2EB86D
monochromatic
#531656 #832287 #B22EB8 #CE50D3 #DB81DF

Accessibility & contrast

On white

5.28
#B22EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B22EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22EB8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EB8#FFFFFF#000000##FFFFFF
##B22EB81.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#4F71B5
Tritanopia (blue-blind)
#B74671
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b22eb8;
/* rgb */ color: rgb(178, 46, 184);
/* oklch */ color: oklch(55.9% 0.224 326.1);
Tailwind
colors: {
  custom: {
    50: '#cd75ce',
    500: '#b22eb8',
    950: '#000000',
  },
}
SCSS
$custom: #b22eb8;
$custom-light: #cd75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b22eb8",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 297.391,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55949,
    "c": 0.22396,
    "h": 326.1
  },
  "luminance": 0.1488
}

Semantic roles & 50–950 ramp

primary
#B22EB8
secondary
#7DC879
accent
#E3454C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B22EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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