#B22CB5#B22CB5

#B22CB5 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.224 H 327.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B22CB5
RGBrgb(178, 44, 181)
HSLhsl(299, 61%, 44%)
HSVhsv(299, 76%, 71%)
CMYKcmyk(1.7%, 75.7%, 0%, 29%)
CIE-LABlab(45.09, 67.80, -43.73)
CIE-LCHlch(45.09, 80.68, 327.18°)
OKLaboklab(55.62% 0.1878 -0.1214)
OKLCHoklch(55.62% 0.224 327.1)
XYZxyz(27.6008, 14.6045, 45.0723)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22CB5 #2FB52C
analogous
#6E2CB5 #B22CB5 #B52C74
triadic
#B22CB5 #B5B22C #2CB5B2
tetradic
#B22CB5 #B56E2C #2FB52C #2C74B5
square
#B22CB5 #B56E2C #2FB52C #2C74B5
split-complementary
#B22CB5 #74B52C #2CB56E
monochromatic
#511453 #822084 #B22CB5 #D04BD3 #DD7CDF

Accessibility & contrast

On white

5.36
#B22CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B22CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22CB5
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22CB5#FFFFFF#000000##FFFFFF
##B22CB51.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B9
Deuteranopia (green-blind)
#5070B2
Tritanopia (blue-blind)
#B7436F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22cb5;
/* rgb */ color: rgb(178, 44, 181);
/* oklch */ color: oklch(55.6% 0.224 327.1);
Tailwind
colors: {
  custom: {
    50: '#cd74cc',
    500: '#b22cb5',
    950: '#000000',
  },
}
SCSS
$custom: #b22cb5;
$custom-light: #cd74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22cb5",
  "rgb": {
    "r": 178,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 298.686,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5562,
    "c": 0.22362,
    "h": 327.1
  },
  "luminance": 0.14603
}

Semantic roles & 50–950 ramp

primary
#B22CB5
secondary
#77C875
accent
#E44447
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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