#B22CC2#B22CC2

#B22CC2 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.4% C 0.234 H 323.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B22CC2
RGBrgb(178, 44, 194)
HSLhsl(294, 63%, 47%)
HSVhsv(294, 77%, 76%)
CMYKcmyk(8.2%, 77.3%, 0%, 23.9%)
CIE-LABlab(45.86, 69.97, -50.11)
CIE-LCHlch(45.86, 86.06, 324.39°)
OKLaboklab(56.41% 0.187 -0.14)
OKLCHoklch(56.41% 0.234 323.2)
XYZxyz(28.9975, 15.1632, 52.4279)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22CC2 #3CC22C
analogous
#672CC2 #B22CC2 #C22C87
triadic
#B22CC2 #C2B22C #2CC2B2
tetradic
#B22CC2 #C2672C #3CC22C #2C87C2
square
#B22CC2 #C2672C #3CC22C #2C87C2
split-complementary
#B22CC2 #87C22C #2CC267
monochromatic
#56155E #842190 #B22CC2 #CA53D8 #D985E3

Accessibility & contrast

On white

5.21
#B22CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B22CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22CC2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22CC2#FFFFFF#000000##FFFFFF
##B22CC21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#4772BF
Tritanopia (blue-blind)
#B54A77
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b22cc2;
/* rgb */ color: rgb(178, 44, 194);
/* oklch */ color: oklch(56.4% 0.234 323.2);
Tailwind
colors: {
  custom: {
    50: '#cd75d5',
    500: '#b22cc2',
    950: '#000000',
  },
}
SCSS
$custom: #b22cc2;
$custom-light: #cd75d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b22cc2",
  "rgb": {
    "r": 178,
    "g": 44,
    "b": 194
  },
  "hsl": {
    "h": 293.6,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56414,
    "c": 0.23363,
    "h": 323.2
  },
  "luminance": 0.15161
}

Semantic roles & 50–950 ramp

primary
#B22CC2
secondary
#86CD7D
accent
#E64253
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140914
muted
#837B83

Preview Lab

Preview with #B22CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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