#B221A1#B221A1

#B221A1 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.219 H 333.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B221A1
RGBrgb(178, 33, 161)
HSLhsl(307, 69%, 41%)
HSVhsv(307, 81%, 70%)
CMYKcmyk(0%, 81.5%, 9.6%, 30.2%)
CIE-LABlab(42.96, 67.67, -35.24)
CIE-LCHlch(42.96, 76.30, 332.49°)
OKLaboklab(53.75% 0.1964 -0.0967)
OKLCHoklch(53.75% 0.219 333.8)
XYZxyz(25.3372, 13.1282, 34.9109)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B221A1 #21B232
analogous
#7B21B2 #B221A1 #B22159
triadic
#B221A1 #A1B221 #21A1B2
tetradic
#B221A1 #B27B21 #21B232 #2159B2
square
#B221A1 #B27B21 #21B232 #2159B2
split-complementary
#B221A1 #59B221 #21B27B
monochromatic
#4B0E44 #7E1772 #B221A1 #DA36C7 #E36AD5

Accessibility & contrast

On white

5.79
#B221A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B221A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B221A1
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B221A1#FFFFFF#000000##FFFFFF
##B221A11.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B58A4
Deuteranopia (green-blind)
#576D9E
Tritanopia (blue-blind)
#BB3262
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b221a1;
/* rgb */ color: rgb(178, 33, 161);
/* oklch */ color: oklch(53.7% 0.219 333.8);
Tailwind
colors: {
  custom: {
    50: '#cd70bd',
    500: '#b221a1',
    950: '#000000',
  },
}
SCSS
$custom: #b221a1;
$custom-light: #cd70bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b221a1",
  "rgb": {
    "r": 178,
    "g": 33,
    "b": 161
  },
  "hsl": {
    "h": 307.034,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53745,
    "c": 0.21893,
    "h": 333.8
  },
  "luminance": 0.13126
}

Semantic roles & 50–950 ramp

primary
#B221A1
secondary
#66C971
accent
#EC513C
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B221A1

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

Preview Lab → · Contrast checker → · Palette generator →

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