#B22BA1#B22BA1

#B22BA1 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.210 H 333.8°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#B22BA1
RGBrgb(178, 43, 161)
HSLhsl(308, 61%, 43%)
HSVhsv(308, 76%, 70%)
CMYKcmyk(0%, 75.8%, 9.6%, 30.2%)
CIE-LABlab(43.90, 64.96, -33.75)
CIE-LCHlch(43.90, 73.20, 332.54°)
OKLaboklab(54.42% 0.1884 -0.0925)
OKLCHoklch(54.42% 0.21 333.8)
XYZxyz(25.6572, 13.7682, 35.0175)
Luminance0.1377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BA1 #2BB23C
analogous
#802BB2 #B22BA1 #B22B5D
triadic
#B22BA1 #A1B22B #2BA1B2
tetradic
#B22BA1 #B2802B #2BB23C #2B5DB2
square
#B22BA1 #B2802B #2BB23C #2B5DB2
split-complementary
#B22BA1 #5DB22B #2BB280
monochromatic
#4F1348 #811F74 #B22BA1 #D348C1 #DF79D2

Accessibility & contrast

On white

5.60
#B22BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#B22BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BA1
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BA1#FFFFFF#000000##FFFFFF
##B22BA11.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275BA4
Deuteranopia (green-blind)
#5A6F9E
Tritanopia (blue-blind)
#BA3864
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22ba1;
/* rgb */ color: rgb(178, 43, 161);
/* oklch */ color: oklch(54.4% 0.210 333.8);
Tailwind
colors: {
  custom: {
    50: '#cd73bd',
    500: '#b22ba1',
    950: '#000000',
  },
}
SCSS
$custom: #b22ba1;
$custom-light: #cd73bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ba1",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 307.556,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5442,
    "c": 0.2099,
    "h": 333.8
  },
  "luminance": 0.13766
}

Semantic roles & 50–950 ramp

primary
#B22BA1
secondary
#72C77D
accent
#E45844
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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