#B221A6#B221A6

#B221A6 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.222 H 332.1°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B221A6
RGBrgb(178, 33, 166)
HSLhsl(305, 69%, 41%)
HSVhsv(305, 81%, 70%)
CMYKcmyk(0%, 81.5%, 6.7%, 30.2%)
CIE-LABlab(43.22, 68.41, -37.81)
CIE-LCHlch(43.22, 78.16, 331.07°)
OKLaboklab(54.02% 0.1965 -0.1042)
OKLCHoklch(54.02% 0.222 332.1)
XYZxyz(25.7870, 13.3081, 37.2796)
Luminance0.1331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B221A6 #21B22D
analogous
#7621B2 #B221A6 #B2215D
triadic
#B221A6 #A6B221 #21A6B2
tetradic
#B221A6 #B27621 #21B22D #215DB2
square
#B221A6 #B27621 #21B22D #215DB2
split-complementary
#B221A6 #5DB221 #21B276
monochromatic
#4B0E46 #7E1776 #B221A6 #DA36CC #E36AD9

Accessibility & contrast

On white

5.74
#B221A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B221A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B221A6
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B221A6#FFFFFF#000000##FFFFFF
##B221A61.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1159A9
Deuteranopia (green-blind)
#546DA3
Tritanopia (blue-blind)
#BA3564
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b221a6;
/* rgb */ color: rgb(178, 33, 166);
/* oklch */ color: oklch(54.0% 0.222 332.1);
Tailwind
colors: {
  custom: {
    50: '#cd70c1',
    500: '#b221a6',
    950: '#000000',
  },
}
SCSS
$custom: #b221a6;
$custom-light: #cd70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b221a6",
  "rgb": {
    "r": 178,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 304.966,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.54022,
    "c": 0.22238,
    "h": 332.1
  },
  "luminance": 0.13306
}

Semantic roles & 50–950 ramp

primary
#B221A6
secondary
#66C96E
accent
#EC4B3C
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B221A6

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

Preview Lab → · Contrast checker → · Palette generator →

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