#B22E9D#B22E9D

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

Color values

HEX#B22E9D
RGBrgb(178, 46, 157)
HSLhsl(310, 59%, 44%)
HSVhsv(310, 74%, 70%)
CMYKcmyk(0%, 74.2%, 11.8%, 30.2%)
CIE-LABlab(44.03, 63.43, -31.16)
CIE-LCHlch(44.03, 70.67, 333.84°)
OKLaboklab(54.45% 0.1854 -0.0851)
OKLCHoklch(54.45% 0.204 335.3)
XYZxyz(25.4232, 13.8556, 33.2272)
Luminance0.1385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22E9D #2EB243
analogous
#852EB2 #B22E9D #B22E5B
triadic
#B22E9D #9DB22E #2E9DB2
tetradic
#B22E9D #B2852E #2EB243 #2E5BB2
square
#B22E9D #B2852E #2EB243 #2E5BB2
split-complementary
#B22E9D #5BB22E #2EB285
monochromatic
#511547 #812172 #B22E9D #D14CBC #DD7DCE

Accessibility & contrast

On white

5.57
#B22E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B22E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22E9D
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22E9D#FFFFFF#000000##FFFFFF
##B22E9D1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b22e9d;
/* rgb */ color: rgb(178, 46, 157);
/* oklch */ color: oklch(54.4% 0.204 335.3);
Tailwind
colors: {
  custom: {
    50: '#cd74ba',
    500: '#b22e9d',
    950: '#000000',
  },
}
SCSS
$custom: #b22e9d;
$custom-light: #cd74ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b22e9d",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 309.545,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54445,
    "c": 0.20396,
    "h": 335.3
  },
  "luminance": 0.13853
}

Semantic roles & 50–950 ramp

primary
#B22E9D
secondary
#76C683
accent
#E25F46
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B22E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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