#B22DB8#B22DB8

#B22DB8 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.9% C 0.225 H 326.2°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B22DB8
RGBrgb(178, 45, 184)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 76%, 72%)
CMYKcmyk(3.3%, 75.5%, 0%, 27.8%)
CIE-LABlab(45.37, 67.99, -45.05)
CIE-LCHlch(45.37, 81.56, 326.47°)
OKLaboklab(55.87% 0.1868 -0.1253)
OKLCHoklch(55.87% 0.225 326.2)
XYZxyz(27.9497, 14.8044, 46.7235)
Luminance0.1480 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22DB8 #33B82D
analogous
#6C2DB8 #B22DB8 #B82D79
triadic
#B22DB8 #B8B22D #2DB8B2
tetradic
#B22DB8 #B86C2D #33B82D #2D79B8
square
#B22DB8 #B86C2D #33B82D #2D79B8
split-complementary
#B22DB8 #79B82D #2DB86C
monochromatic
#531556 #822187 #B22DB8 #CE4ED4 #DC80E0

Accessibility & contrast

On white

5.30
#B22DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B22DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22DB8
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22DB8#FFFFFF#000000##FFFFFF
##B22DB81.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b22db8;
/* rgb */ color: rgb(178, 45, 184);
/* oklch */ color: oklch(55.9% 0.225 326.2);
Tailwind
colors: {
  custom: {
    50: '#cd75ce',
    500: '#b22db8',
    950: '#000000',
  },
}
SCSS
$custom: #b22db8;
$custom-light: #cd75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b22db8",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 297.41,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55873,
    "c": 0.22495,
    "h": 326.2
  },
  "luminance": 0.14802
}

Semantic roles & 50–950 ramp

primary
#B22DB8
secondary
#7CC978
accent
#E4444B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B22DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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