#B22BB2#B22BB2

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

Color values

HEX#B22BB2
RGBrgb(178, 43, 178)
HSLhsl(300, 61%, 43%)
HSVhsv(300, 76%, 70%)
CMYKcmyk(0%, 75.8%, 0%, 30.2%)
CIE-LABlab(44.81, 67.60, -42.40)
CIE-LCHlch(44.81, 79.80, 327.90°)
OKLaboklab(55.37% 0.1887 -0.1176)
OKLCHoklch(55.37% 0.222 328.1)
XYZxyz(27.2595, 14.4091, 43.4563)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BB2 #2BB22B
analogous
#6E2BB2 #B22BB2 #B22B6E
triadic
#B22BB2 #B2B22B #2BB2B2
tetradic
#B22BB2 #B26E2B #2BB22B #2B6EB2
square
#B22BB2 #B26E2B #2BB22B #2B6EB2
split-complementary
#B22BB2 #6EB22B #2BB26E
monochromatic
#4F134F #811F81 #B22BB2 #D348D3 #DF79DF

Accessibility & contrast

On white

5.41
#B22BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#B22BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BB2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BB2#FFFFFF#000000##FFFFFF
##B22BB21.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075FB6
Deuteranopia (green-blind)
#5170AF
Tritanopia (blue-blind)
#B8416D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22bb2;
/* rgb */ color: rgb(178, 43, 178);
/* oklch */ color: oklch(55.4% 0.222 328.1);
Tailwind
colors: {
  custom: {
    50: '#cd74c9',
    500: '#b22bb2',
    950: '#000000',
  },
}
SCSS
$custom: #b22bb2;
$custom-light: #cd74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22bb2",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5537,
    "c": 0.22231,
    "h": 328.1
  },
  "luminance": 0.14407
}

Semantic roles & 50–950 ramp

primary
#B22BB2
secondary
#72C772
accent
#E44444
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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