#B22DB7#B22DB7

#B22DB7 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.224 H 326.5°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B22DB7
RGBrgb(178, 45, 183)
HSLhsl(298, 61%, 45%)
HSVhsv(298, 75%, 72%)
CMYKcmyk(2.7%, 75.4%, 0%, 28.2%)
CIE-LABlab(45.31, 67.82, -44.56)
CIE-LCHlch(45.31, 81.15, 326.70°)
OKLaboklab(55.81% 0.1868 -0.1238)
OKLCHoklch(55.81% 0.224 326.5)
XYZxyz(27.8452, 14.7626, 46.1734)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22DB7 #32B72D
analogous
#6D2DB7 #B22DB7 #B72D77
triadic
#B22DB7 #B7B22D #2DB7B2
tetradic
#B22DB7 #B76D2D #32B72D #2D77B7
square
#B22DB7 #B76D2D #32B72D #2D77B7
split-complementary
#B22DB7 #77B72D #2DB76D
monochromatic
#521555 #822186 #B22DB7 #CF4ED3 #DC7FDF

Accessibility & contrast

On white

5.31
#B22DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B22DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22DB7
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22DB7#FFFFFF#000000##FFFFFF
##B22DB71.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#4F71B4
Tritanopia (blue-blind)
#B74571
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22db7;
/* rgb */ color: rgb(178, 45, 183);
/* oklch */ color: oklch(55.8% 0.224 326.5);
Tailwind
colors: {
  custom: {
    50: '#cd75cd',
    500: '#b22db7',
    950: '#000000',
  },
}
SCSS
$custom: #b22db7;
$custom-light: #cd75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22db7",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 297.826,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55814,
    "c": 0.22417,
    "h": 326.5
  },
  "luminance": 0.14761
}

Semantic roles & 50–950 ramp

primary
#B22DB7
secondary
#7BC878
accent
#E4444A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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