#B22DB9#B22DB9

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

Color values

HEX#B22DB9
RGBrgb(178, 45, 185)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 76%, 73%)
CMYKcmyk(3.8%, 75.7%, 0%, 27.5%)
CIE-LABlab(45.42, 68.16, -45.55)
CIE-LCHlch(45.42, 81.97, 326.25°)
OKLaboklab(55.93% 0.1868 -0.1267)
OKLCHoklch(55.93% 0.226 325.8)
XYZxyz(28.0549, 14.8464, 47.2775)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22DB9 #34B92D
analogous
#6C2DB9 #B22DB9 #B92D7A
triadic
#B22DB9 #B9B22D #2DB9B2
tetradic
#B22DB9 #B96C2D #34B92D #2D7AB9
square
#B22DB9 #B96C2D #34B92D #2D7AB9
split-complementary
#B22DB9 #7AB92D #2DB96C
monochromatic
#531557 #832188 #B22DB9 #CE4FD4 #DB80E0

Accessibility & contrast

On white

5.29
#B22DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B22DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22DB9
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22DB9#FFFFFF#000000##FFFFFF
##B22DB91.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#4E71B6
Tritanopia (blue-blind)
#B64672
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22db9;
/* rgb */ color: rgb(178, 45, 185);
/* oklch */ color: oklch(55.9% 0.226 325.8);
Tailwind
colors: {
  custom: {
    50: '#cd75cf',
    500: '#b22db9',
    950: '#000000',
  },
}
SCSS
$custom: #b22db9;
$custom-light: #cd75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b22db9",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 297,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55933,
    "c": 0.22571,
    "h": 325.8
  },
  "luminance": 0.14845
}

Semantic roles & 50–950 ramp

primary
#B22DB9
secondary
#7DC979
accent
#E4444C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B22DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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