#B22BA2#B22BA2

#B22BA2 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.211 H 333.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B22BA2
RGBrgb(178, 43, 162)
HSLhsl(307, 61%, 43%)
HSVhsv(307, 76%, 70%)
CMYKcmyk(0%, 75.8%, 9%, 30.2%)
CIE-LABlab(43.95, 65.11, -34.27)
CIE-LCHlch(43.95, 73.58, 332.24°)
OKLaboklab(54.47% 0.1885 -0.094)
OKLCHoklch(54.47% 0.211 333.5)
XYZxyz(25.7458, 13.8036, 35.4838)
Luminance0.1380 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BA2 #2BB23B
analogous
#7E2BB2 #B22BA2 #B22B5E
triadic
#B22BA2 #A2B22B #2BA2B2
tetradic
#B22BA2 #B27E2B #2BB23B #2B5EB2
square
#B22BA2 #B27E2B #2BB23B #2B5EB2
split-complementary
#B22BA2 #5EB22B #2BB27E
monochromatic
#4F1348 #811F75 #B22BA2 #D348C2 #DF79D3

Accessibility & contrast

On white

5.58
#B22BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B22BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BA2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BA2#FFFFFF#000000##FFFFFF
##B22BA21.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA5
Deuteranopia (green-blind)
#5A6F9F
Tritanopia (blue-blind)
#BA3964
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22ba2;
/* rgb */ color: rgb(178, 43, 162);
/* oklch */ color: oklch(54.5% 0.211 333.5);
Tailwind
colors: {
  custom: {
    50: '#cd73be',
    500: '#b22ba2',
    950: '#000000',
  },
}
SCSS
$custom: #b22ba2;
$custom-light: #cd73be;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ba2",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 307.111,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54473,
    "c": 0.21061,
    "h": 333.5
  },
  "luminance": 0.13801
}

Semantic roles & 50–950 ramp

primary
#B22BA2
secondary
#72C77C
accent
#E45744
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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