#B221BA#B221BA

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

Color values

HEX#B221BA
RGBrgb(178, 33, 186)
HSLhsl(297, 70%, 43%)
HSVhsv(297, 82%, 73%)
CMYKcmyk(4.3%, 82.3%, 0%, 27.1%)
CIE-LABlab(44.38, 71.52, -47.81)
CIE-LCHlch(44.38, 86.03, 326.24°)
OKLaboklab(55.21% 0.1956 -0.1333)
OKLCHoklch(55.21% 0.237 325.7)
XYZxyz(27.7663, 14.0998, 47.7039)
Luminance0.1410 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B221BA #29BA21
analogous
#6621BA #B221BA #BA2175
triadic
#B221BA #BAB221 #21BAB2
tetradic
#B221BA #BA6621 #29BA21 #2175BA
square
#B221BA #BA6621 #29BA21 #2175BA
split-complementary
#B221BA #75BA21 #21BA66
monochromatic
#4F0F52 #801886 #B221BA #D43CDC #DF70E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B221BA#FFFFFF#000000##FFFFFF
##B221BA1.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)
#005EBE
Deuteranopia (green-blind)
#486FB7
Tritanopia (blue-blind)
#B64070
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b221ba;
/* rgb */ color: rgb(178, 33, 186);
/* oklch */ color: oklch(55.2% 0.237 325.7);
Tailwind
colors: {
  custom: {
    50: '#cd71cf',
    500: '#b221ba',
    950: '#000000',
  },
}
SCSS
$custom: #b221ba;
$custom-light: #cd71cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b221ba",
  "rgb": {
    "r": 178,
    "g": 33,
    "b": 186
  },
  "hsl": {
    "h": 296.863,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5521,
    "c": 0.23669,
    "h": 325.7
  },
  "luminance": 0.14098
}

Semantic roles & 50–950 ramp

primary
#B221BA
secondary
#70CC6B
accent
#ED3B44
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B221BA

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

Preview Lab → · Contrast checker → · Palette generator →

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