#B22BA4#B22BA4

#B22BA4 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.212 H 332.8°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#B22BA4
RGBrgb(178, 43, 164)
HSLhsl(306, 61%, 43%)
HSVhsv(306, 76%, 70%)
CMYKcmyk(0%, 75.8%, 7.9%, 30.2%)
CIE-LABlab(44.05, 65.41, -35.30)
CIE-LCHlch(44.05, 74.33, 331.64°)
OKLaboklab(54.58% 0.1886 -0.097)
OKLCHoklch(54.58% 0.212 332.8)
XYZxyz(25.9249, 13.8753, 36.4276)
Luminance0.1387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BA4 #2BB239
analogous
#7C2BB2 #B22BA4 #B22B60
triadic
#B22BA4 #A4B22B #2BA4B2
tetradic
#B22BA4 #B27C2B #2BB239 #2B60B2
square
#B22BA4 #B27C2B #2BB239 #2B60B2
split-complementary
#B22BA4 #60B22B #2BB27C
monochromatic
#4F1349 #811F77 #B22BA4 #D348C4 #DF79D4

Accessibility & contrast

On white

5.56
#B22BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B22BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BA4
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BA4#FFFFFF#000000##FFFFFF
##B22BA41.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235CA7
Deuteranopia (green-blind)
#596FA1
Tritanopia (blue-blind)
#BA3A66
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22ba4;
/* rgb */ color: rgb(178, 43, 164);
/* oklch */ color: oklch(54.6% 0.212 332.8);
Tailwind
colors: {
  custom: {
    50: '#cd73bf',
    500: '#b22ba4',
    950: '#000000',
  },
}
SCSS
$custom: #b22ba4;
$custom-light: #cd73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ba4",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 306.222,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54581,
    "c": 0.21204,
    "h": 332.8
  },
  "luminance": 0.13873
}

Semantic roles & 50–950 ramp

primary
#B22BA4
secondary
#72C77B
accent
#E45444
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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