#B22DB6#B22DB6

#B22DB6 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.8% C 0.223 H 326.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B22DB6
RGBrgb(178, 45, 182)
HSLhsl(298, 60%, 45%)
HSVhsv(298, 75%, 71%)
CMYKcmyk(2.2%, 75.3%, 0%, 28.6%)
CIE-LABlab(45.25, 67.66, -44.06)
CIE-LCHlch(45.25, 80.74, 326.93°)
OKLaboklab(55.75% 0.1869 -0.1224)
OKLCHoklch(55.75% 0.223 326.8)
XYZxyz(27.7415, 14.7211, 45.6272)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22DB6 #31B62D
analogous
#6E2DB6 #B22DB6 #B62D76
triadic
#B22DB6 #B6B22D #2DB6B2
tetradic
#B22DB6 #B66E2D #31B62D #2D76B6
square
#B22DB6 #B66E2D #31B62D #2D76B6
split-complementary
#B22DB6 #76B62D #2DB66E
monochromatic
#521554 #822185 #B22DB6 #CF4DD3 #DC7EDF

Accessibility & contrast

On white

5.32
#B22DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B22DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22DB6
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22DB6#FFFFFF#000000##FFFFFF
##B22DB61.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#5071B3
Tritanopia (blue-blind)
#B74470
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22db6;
/* rgb */ color: rgb(178, 45, 182);
/* oklch */ color: oklch(55.8% 0.223 326.8);
Tailwind
colors: {
  custom: {
    50: '#cd75cc',
    500: '#b22db6',
    950: '#000000',
  },
}
SCSS
$custom: #b22db6;
$custom-light: #cd75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22db6",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 298.248,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55754,
    "c": 0.22341,
    "h": 326.8
  },
  "luminance": 0.14719
}

Semantic roles & 50–950 ramp

primary
#B22DB6
secondary
#79C877
accent
#E34449
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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