#B22AB7#B22AB7

#B22AB7 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.6% C 0.227 H 326.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B22AB7
RGBrgb(178, 42, 183)
HSLhsl(298, 63%, 44%)
HSVhsv(298, 77%, 72%)
CMYKcmyk(2.7%, 77%, 0%, 28.2%)
CIE-LABlab(45.00, 68.71, -45.05)
CIE-LCHlch(45.00, 82.16, 326.75°)
OKLaboklab(55.6% 0.1893 -0.1253)
OKLCHoklch(55.6% 0.227 326.5)
XYZxyz(27.7348, 14.5418, 46.1366)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AB7 #2FB72A
analogous
#6C2AB7 #B22AB7 #B72A76
triadic
#B22AB7 #B7B22A #2AB7B2
tetradic
#B22AB7 #B76C2A #2FB72A #2A76B7
square
#B22AB7 #B76C2A #2FB72A #2A76B7
split-complementary
#B22AB7 #76B72A #2AB76C
monochromatic
#511353 #821F85 #B22AB7 #D049D5 #DD7BE1

Accessibility & contrast

On white

5.37
#B22AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#B22AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AB7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AB7#FFFFFF#000000##FFFFFF
##B22AB71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#4E70B4
Tritanopia (blue-blind)
#B74370
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22ab7;
/* rgb */ color: rgb(178, 42, 183);
/* oklch */ color: oklch(55.6% 0.227 326.5);
Tailwind
colors: {
  custom: {
    50: '#cd74cd',
    500: '#b22ab7',
    950: '#000000',
  },
}
SCSS
$custom: #b22ab7;
$custom-light: #cd74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ab7",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 297.872,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55595,
    "c": 0.22702,
    "h": 326.5
  },
  "luminance": 0.1454
}

Semantic roles & 50–950 ramp

primary
#B22AB7
secondary
#77C974
accent
#E64248
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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