#B22EB7#B22EB7

#B22EB7 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.9% C 0.223 H 326.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B22EB7
RGBrgb(178, 46, 183)
HSLhsl(298, 60%, 45%)
HSVhsv(298, 75%, 72%)
CMYKcmyk(2.7%, 74.9%, 0%, 28.2%)
CIE-LABlab(45.41, 67.52, -44.39)
CIE-LCHlch(45.41, 80.80, 326.68°)
OKLaboklab(55.89% 0.186 -0.1234)
OKLCHoklch(55.89% 0.223 326.4)
XYZxyz(27.8838, 14.8398, 46.1863)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EB7 #33B72E
analogous
#6D2EB7 #B22EB7 #B72E78
triadic
#B22EB7 #B7B22E #2EB7B2
tetradic
#B22EB7 #B76D2E #33B72E #2E78B7
square
#B22EB7 #B76D2E #33B72E #2E78B7
split-complementary
#B22EB7 #78B72E #2EB76D
monochromatic
#531555 #822286 #B22EB7 #CE4FD3 #DC80DF

Accessibility & contrast

On white

5.29
#B22EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B22EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22EB7
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EB7#FFFFFF#000000##FFFFFF
##B22EB71.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#4F71B4
Tritanopia (blue-blind)
#B74671
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22eb7;
/* rgb */ color: rgb(178, 46, 183);
/* oklch */ color: oklch(55.9% 0.223 326.4);
Tailwind
colors: {
  custom: {
    50: '#cd75cd',
    500: '#b22eb7',
    950: '#000000',
  },
}
SCSS
$custom: #b22eb7;
$custom-light: #cd75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22eb7",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 297.81,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.5589,
    "c": 0.2232,
    "h": 326.4
  },
  "luminance": 0.14838
}

Semantic roles & 50–950 ramp

primary
#B22EB7
secondary
#7CC879
accent
#E3454B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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