#B22CB2#B22CB2

#B22CB2 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.221 H 328.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B22CB2
RGBrgb(178, 44, 178)
HSLhsl(300, 60%, 44%)
HSVhsv(300, 75%, 70%)
CMYKcmyk(0%, 75.3%, 0%, 30.2%)
CIE-LABlab(44.92, 67.31, -42.24)
CIE-LCHlch(44.92, 79.46, 327.89°)
OKLaboklab(55.44% 0.1878 -0.1171)
OKLCHoklch(55.44% 0.221 328.1)
XYZxyz(27.2963, 14.4827, 43.4686)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22CB2 #2CB22C
analogous
#6F2CB2 #B22CB2 #B22C6F
triadic
#B22CB2 #B2B22C #2CB2B2
tetradic
#B22CB2 #B26F2C #2CB22C #2C6FB2
square
#B22CB2 #B26F2C #2CB22C #2C6FB2
split-complementary
#B22CB2 #6FB22C #2CB26F
monochromatic
#501450 #812081 #B22CB2 #D249D2 #DE7ADE

Accessibility & contrast

On white

5.39
#B22CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B22CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22CB2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22CB2#FFFFFF#000000##FFFFFF
##B22CB21.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5FB6
Deuteranopia (green-blind)
#5270AF
Tritanopia (blue-blind)
#B8426E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22cb2;
/* rgb */ color: rgb(178, 44, 178);
/* oklch */ color: oklch(55.4% 0.221 328.1);
Tailwind
colors: {
  custom: {
    50: '#cd74c9',
    500: '#b22cb2',
    950: '#000000',
  },
}
SCSS
$custom: #b22cb2;
$custom-light: #cd74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22cb2",
  "rgb": {
    "r": 178,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55444,
    "c": 0.22135,
    "h": 328.1
  },
  "luminance": 0.14481
}

Semantic roles & 50–950 ramp

primary
#B22CB2
secondary
#73C673
accent
#E44444
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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