#B22FB5#B22FB5

#B22FB5 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.221 H 327.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B22FB5
RGBrgb(178, 47, 181)
HSLhsl(299, 59%, 45%)
HSVhsv(299, 74%, 71%)
CMYKcmyk(1.7%, 74%, 0%, 29%)
CIE-LABlab(45.41, 66.87, -43.22)
CIE-LCHlch(45.41, 79.62, 327.13°)
OKLaboklab(55.85% 0.1852 -0.12)
OKLCHoklch(55.85% 0.221 327.1)
XYZxyz(27.7167, 14.8362, 45.1109)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FB5 #32B52F
analogous
#6F2FB5 #B22FB5 #B52F75
triadic
#B22FB5 #B5B22F #2FB5B2
tetradic
#B22FB5 #B56F2F #32B52F #2F75B5
square
#B22FB5 #B56F2F #32B52F #2F75B5
split-complementary
#B22FB5 #75B52F #2FB56F
monochromatic
#521654 #822284 #B22FB5 #CF50D1 #DC80DE

Accessibility & contrast

On white

5.29
#B22FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B22FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FB5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FB5#FFFFFF#000000##FFFFFF
##B22FB51.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A61B9
Deuteranopia (green-blind)
#5171B2
Tritanopia (blue-blind)
#B74570
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22fb5;
/* rgb */ color: rgb(178, 47, 181);
/* oklch */ color: oklch(55.8% 0.221 327.1);
Tailwind
colors: {
  custom: {
    50: '#cd76cc',
    500: '#b22fb5',
    950: '#000000',
  },
}
SCSS
$custom: #b22fb5;
$custom-light: #cd76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fb5",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 298.657,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55849,
    "c": 0.22065,
    "h": 327.1
  },
  "luminance": 0.14834
}

Semantic roles & 50–950 ramp

primary
#B22FB5
secondary
#7BC779
accent
#E24649
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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