#B22CA8#B22CA8

#B22CA8 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.214 H 331.4°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#B22CA8
RGBrgb(178, 44, 168)
HSLhsl(304, 60%, 44%)
HSVhsv(304, 75%, 70%)
CMYKcmyk(0%, 75.3%, 5.6%, 30.2%)
CIE-LABlab(44.37, 65.72, -37.18)
CIE-LCHlch(44.37, 75.51, 330.50°)
OKLaboklab(54.88% 0.1878 -0.1024)
OKLCHoklch(54.88% 0.214 331.4)
XYZxyz(26.3287, 14.0956, 38.3722)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22CA8 #2CB236
analogous
#792CB2 #B22CA8 #B22C65
triadic
#B22CA8 #A8B22C #2CA8B2
tetradic
#B22CA8 #B2792C #2CB236 #2C65B2
square
#B22CA8 #B2792C #2CB236 #2C65B2
split-complementary
#B22CA8 #65B22C #2CB279
monochromatic
#50144B #81207A #B22CA8 #D249C8 #DE7AD7

Accessibility & contrast

On white

5.50
#B22CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B22CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22CA8
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22CA8#FFFFFF#000000##FFFFFF
##B22CA81.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205DAB
Deuteranopia (green-blind)
#576FA5
Tritanopia (blue-blind)
#B93D68
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22ca8;
/* rgb */ color: rgb(178, 44, 168);
/* oklch */ color: oklch(54.9% 0.214 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd74c2',
    500: '#b22ca8',
    950: '#000000',
  },
}
SCSS
$custom: #b22ca8;
$custom-light: #cd74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ca8",
  "rgb": {
    "r": 178,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 304.478,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54876,
    "c": 0.21393,
    "h": 331.4
  },
  "luminance": 0.14093
}

Semantic roles & 50–950 ramp

primary
#B22CA8
secondary
#73C67A
accent
#E45044
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B22CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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