#B22CB8#B22CB8

#B22CB8 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.8% C 0.226 H 326.2°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B22CB8
RGBrgb(178, 44, 184)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 76%, 72%)
CMYKcmyk(3.3%, 76.1%, 0%, 27.8%)
CIE-LABlab(45.26, 68.29, -45.22)
CIE-LCHlch(45.26, 81.90, 326.49°)
OKLaboklab(55.8% 0.1877 -0.1258)
OKLCHoklch(55.8% 0.226 326.2)
XYZxyz(27.9120, 14.7290, 46.7109)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22CB8 #32B82C
analogous
#6C2CB8 #B22CB8 #B82C78
triadic
#B22CB8 #B8B22C #2CB8B2
tetradic
#B22CB8 #B86C2C #32B82C #2C78B8
square
#B22CB8 #B86C2C #32B82C #2C78B8
split-complementary
#B22CB8 #78B82C #2CB86C
monochromatic
#521455 #822087 #B22CB8 #CF4DD4 #DC7EE0

Accessibility & contrast

On white

5.32
#B22CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B22CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22CB8
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22CB8#FFFFFF#000000##FFFFFF
##B22CB81.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#4E71B5
Tritanopia (blue-blind)
#B74571
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22cb8;
/* rgb */ color: rgb(178, 44, 184);
/* oklch */ color: oklch(55.8% 0.226 326.2);
Tailwind
colors: {
  custom: {
    50: '#cd74ce',
    500: '#b22cb8',
    950: '#000000',
  },
}
SCSS
$custom: #b22cb8;
$custom-light: #cd74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b22cb8",
  "rgb": {
    "r": 178,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 297.429,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55799,
    "c": 0.2259,
    "h": 326.2
  },
  "luminance": 0.14727
}

Semantic roles & 50–950 ramp

primary
#B22CB8
secondary
#7BC977
accent
#E5434A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B22CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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