#B22BB1#B22BB1

#B22BB1 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.3% C 0.222 H 328.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B22BB1
RGBrgb(178, 43, 177)
HSLhsl(300, 61%, 43%)
HSVhsv(300, 76%, 70%)
CMYKcmyk(0%, 75.8%, 0.6%, 30.2%)
CIE-LABlab(44.76, 67.44, -41.90)
CIE-LCHlch(44.76, 79.40, 328.15°)
OKLaboklab(55.31% 0.1887 -0.1161)
OKLCHoklch(55.31% 0.222 328.4)
XYZxyz(27.1595, 14.3691, 42.9295)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BB1 #2BB22C
analogous
#6F2BB2 #B22BB1 #B22B6E
triadic
#B22BB1 #B1B22B #2BB1B2
tetradic
#B22BB1 #B26F2B #2BB22C #2B6EB2
square
#B22BB1 #B26F2B #2BB22C #2B6EB2
split-complementary
#B22BB1 #6EB22B #2BB26F
monochromatic
#4F134F #811F80 #B22BB1 #D348D2 #DF79DE

Accessibility & contrast

On white

5.42
#B22BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B22BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BB1
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BB1#FFFFFF#000000##FFFFFF
##B22BB11.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5FB5
Deuteranopia (green-blind)
#5270AE
Tritanopia (blue-blind)
#B8416D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22bb1;
/* rgb */ color: rgb(178, 43, 177);
/* oklch */ color: oklch(55.3% 0.222 328.4);
Tailwind
colors: {
  custom: {
    50: '#cd74c9',
    500: '#b22bb1',
    950: '#000000',
  },
}
SCSS
$custom: #b22bb1;
$custom-light: #cd74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22bb1",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 300.444,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.55312,
    "c": 0.22156,
    "h": 328.4
  },
  "luminance": 0.14367
}

Semantic roles & 50–950 ramp

primary
#B22BB1
secondary
#72C773
accent
#E44544
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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