#B22BB7#B22BB7

#B22BB7 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.7% C 0.226 H 326.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B22BB7
RGBrgb(178, 43, 183)
HSLhsl(298, 62%, 44%)
HSVhsv(298, 77%, 72%)
CMYKcmyk(2.7%, 76.5%, 0%, 28.2%)
CIE-LABlab(45.10, 68.42, -44.89)
CIE-LCHlch(45.10, 81.83, 326.73°)
OKLaboklab(55.67% 0.1885 -0.1248)
OKLCHoklch(55.67% 0.226 326.5)
XYZxyz(27.7707, 14.6136, 46.1486)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BB7 #30B72B
analogous
#6C2BB7 #B22BB7 #B72B76
triadic
#B22BB7 #B7B22B #2BB7B2
tetradic
#B22BB7 #B76C2B #30B72B #2B76B7
square
#B22BB7 #B76C2B #30B72B #2B76B7
split-complementary
#B22BB7 #76B72B #2BB76C
monochromatic
#521454 #821F85 #B22BB7 #D04BD5 #DD7CE0

Accessibility & contrast

On white

5.35
#B22BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B22BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BB7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BB7#FFFFFF#000000##FFFFFF
##B22BB71.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b22bb7;
/* rgb */ color: rgb(178, 43, 183);
/* oklch */ color: oklch(55.7% 0.226 326.5);
Tailwind
colors: {
  custom: {
    50: '#cd74cd',
    500: '#b22bb7',
    950: '#000000',
  },
}
SCSS
$custom: #b22bb7;
$custom-light: #cd74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22bb7",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 297.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55666,
    "c": 0.22609,
    "h": 326.5
  },
  "luminance": 0.14612
}

Semantic roles & 50–950 ramp

primary
#B22BB7
secondary
#78C975
accent
#E54349
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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