#B22DB2#B22DB2

#B22DB2 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.220 H 328.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B22DB2
RGBrgb(178, 45, 178)
HSLhsl(300, 60%, 44%)
HSVhsv(300, 75%, 70%)
CMYKcmyk(0%, 74.7%, 0%, 30.2%)
CIE-LABlab(45.02, 67.00, -42.07)
CIE-LCHlch(45.02, 79.12, 327.88°)
OKLaboklab(55.52% 0.187 -0.1166)
OKLCHoklch(55.52% 0.22 328.1)
XYZxyz(27.3340, 14.5581, 43.4812)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22DB2 #2DB22D
analogous
#6F2DB2 #B22DB2 #B22D6F
triadic
#B22DB2 #B2B22D #2DB2B2
tetradic
#B22DB2 #B26F2D #2DB22D #2D6FB2
square
#B22DB2 #B26F2D #2DB22D #2D6FB2
split-complementary
#B22DB2 #6FB22D #2DB26F
monochromatic
#501450 #812181 #B22DB2 #D14BD1 #DE7CDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B22DB2#FFFFFF#000000##FFFFFF
##B22DB21.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)
#0E60B6
Deuteranopia (green-blind)
#5270AF
Tritanopia (blue-blind)
#B8426E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22db2;
/* rgb */ color: rgb(178, 45, 178);
/* oklch */ color: oklch(55.5% 0.220 328.1);
Tailwind
colors: {
  custom: {
    50: '#cd75c9',
    500: '#b22db2',
    950: '#000000',
  },
}
SCSS
$custom: #b22db2;
$custom-light: #cd75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22db2",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55519,
    "c": 0.22037,
    "h": 328.1
  },
  "luminance": 0.14556
}

Semantic roles & 50–950 ramp

primary
#B22DB2
secondary
#75C675
accent
#E34545
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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