#B22D9D#B22D9D

#B22D9D is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.205 H 335.3°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#B22D9D
RGBrgb(178, 45, 157)
HSLhsl(309, 60%, 44%)
HSVhsv(309, 75%, 70%)
CMYKcmyk(0%, 74.7%, 11.8%, 30.2%)
CIE-LABlab(43.91, 63.75, -31.33)
CIE-LCHlch(43.91, 71.03, 333.82°)
OKLaboklab(54.36% 0.1863 -0.0856)
OKLCHoklch(54.36% 0.205 335.3)
XYZxyz(25.3846, 13.7783, 33.2143)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22D9D #2DB242
analogous
#842DB2 #B22D9D #B22D5A
triadic
#B22D9D #9DB22D #2D9DB2
tetradic
#B22D9D #B2842D #2DB242 #2D5AB2
square
#B22D9D #B2842D #2DB242 #2D5AB2
split-complementary
#B22D9D #5AB22D #2DB284
monochromatic
#501447 #812172 #B22D9D #D14BBC #DE7CCE

Accessibility & contrast

On white

5.59
#B22D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B22D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22D9D
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22D9D#FFFFFF#000000##FFFFFF
##B22D9D1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5BA0
Deuteranopia (green-blind)
#5D6F9A
Tritanopia (blue-blind)
#BB3862
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22d9d;
/* rgb */ color: rgb(178, 45, 157);
/* oklch */ color: oklch(54.4% 0.205 335.3);
Tailwind
colors: {
  custom: {
    50: '#cd74ba',
    500: '#b22d9d',
    950: '#000000',
  },
}
SCSS
$custom: #b22d9d;
$custom-light: #cd74ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b22d9d",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 309.474,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54365,
    "c": 0.20503,
    "h": 335.3
  },
  "luminance": 0.13776
}

Semantic roles & 50–950 ramp

primary
#B22D9D
secondary
#75C682
accent
#E35E45
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B22D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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