#B22E9F#B22E9F

#B22E9F is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.5% C 0.205 H 334.6°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#B22E9F
RGBrgb(178, 46, 159)
HSLhsl(309, 59%, 44%)
HSVhsv(309, 74%, 70%)
CMYKcmyk(0%, 74.2%, 10.7%, 30.2%)
CIE-LABlab(44.12, 63.73, -32.20)
CIE-LCHlch(44.12, 71.40, 333.19°)
OKLaboklab(54.55% 0.1855 -0.0881)
OKLCHoklch(54.55% 0.205 334.6)
XYZxyz(25.5954, 13.9244, 34.1338)
Luminance0.1392 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22E9F #2EB241
analogous
#832EB2 #B22E9F #B22E5D
triadic
#B22E9F #9FB22E #2E9FB2
tetradic
#B22E9F #B2832E #2EB241 #2E5DB2
square
#B22E9F #B2832E #2EB241 #2E5DB2
split-complementary
#B22E9F #5DB22E #2EB283
monochromatic
#511548 #812174 #B22E9F #D14CBE #DD7DD0

Accessibility & contrast

On white

5.55
#B22E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B22E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22E9F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22E9F#FFFFFF#000000##FFFFFF
##B22E9F1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5CA2
Deuteranopia (green-blind)
#5C6F9C
Tritanopia (blue-blind)
#BB3A64
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22e9f;
/* rgb */ color: rgb(178, 46, 159);
/* oklch */ color: oklch(54.5% 0.205 334.6);
Tailwind
colors: {
  custom: {
    50: '#cd74bc',
    500: '#b22e9f',
    950: '#000000',
  },
}
SCSS
$custom: #b22e9f;
$custom-light: #cd74bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22e9f",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 308.636,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54549,
    "c": 0.20537,
    "h": 334.6
  },
  "luminance": 0.13922
}

Semantic roles & 50–950 ramp

primary
#B22E9F
secondary
#76C681
accent
#E25C46
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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