#B22DA2#B22DA2

#B22DA2 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.6% C 0.209 H 333.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B22DA2
RGBrgb(178, 45, 162)
HSLhsl(307, 60%, 44%)
HSVhsv(307, 75%, 70%)
CMYKcmyk(0%, 74.7%, 9%, 30.2%)
CIE-LABlab(44.16, 64.49, -33.93)
CIE-LCHlch(44.16, 72.88, 332.25°)
OKLaboklab(54.63% 0.1867 -0.0931)
OKLCHoklch(54.63% 0.209 333.5)
XYZxyz(25.8203, 13.9526, 35.5087)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22DA2 #2DB23D
analogous
#7F2DB2 #B22DA2 #B22D5F
triadic
#B22DA2 #A2B22D #2DA2B2
tetradic
#B22DA2 #B27F2D #2DB23D #2D5FB2
square
#B22DA2 #B27F2D #2DB23D #2D5FB2
split-complementary
#B22DA2 #5FB22D #2DB27F
monochromatic
#501449 #812176 #B22DA2 #D14BC1 #DE7CD2

Accessibility & contrast

On white

5.54
#B22DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B22DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22DA2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22DA2#FFFFFF#000000##FFFFFF
##B22DA21.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA5
Deuteranopia (green-blind)
#5B6F9F
Tritanopia (blue-blind)
#BA3A65
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22da2;
/* rgb */ color: rgb(178, 45, 162);
/* oklch */ color: oklch(54.6% 0.209 333.5);
Tailwind
colors: {
  custom: {
    50: '#cd74be',
    500: '#b22da2',
    950: '#000000',
  },
}
SCSS
$custom: #b22da2;
$custom-light: #cd74be;
$custom-dark: #000000;
JSON
{
  "hex": "#b22da2",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 307.218,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54627,
    "c": 0.20856,
    "h": 333.5
  },
  "luminance": 0.1395
}

Semantic roles & 50–950 ramp

primary
#B22DA2
secondary
#75C67E
accent
#E35845
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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