#B22D9F#B22D9F

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

Color values

HEX#B22D9F
RGBrgb(178, 45, 159)
HSLhsl(309, 60%, 44%)
HSVhsv(309, 75%, 70%)
CMYKcmyk(0%, 74.7%, 10.7%, 30.2%)
CIE-LABlab(44.01, 64.04, -32.38)
CIE-LCHlch(44.01, 71.76, 333.18°)
OKLaboklab(54.47% 0.1865 -0.0886)
OKLCHoklch(54.47% 0.206 334.6)
XYZxyz(25.5568, 13.8472, 34.1210)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22D9F #2DB240
analogous
#822DB2 #B22D9F #B22D5C
triadic
#B22D9F #9FB22D #2D9FB2
tetradic
#B22D9F #B2822D #2DB240 #2D5CB2
square
#B22D9F #B2822D #2DB240 #2D5CB2
split-complementary
#B22D9F #5CB22D #2DB282
monochromatic
#501448 #812173 #B22D9F #D14BBE #DE7CD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B22D9F#FFFFFF#000000##FFFFFF
##B22D9F1.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)
#2B5CA2
Deuteranopia (green-blind)
#5C6F9C
Tritanopia (blue-blind)
#BB3963
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22d9f;
/* rgb */ color: rgb(178, 45, 159);
/* oklch */ color: oklch(54.5% 0.206 334.6);
Tailwind
colors: {
  custom: {
    50: '#cd74bc',
    500: '#b22d9f',
    950: '#000000',
  },
}
SCSS
$custom: #b22d9f;
$custom-light: #cd74bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22d9f",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 308.571,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54469,
    "c": 0.20644,
    "h": 334.6
  },
  "luminance": 0.13845
}

Semantic roles & 50–950 ramp

primary
#B22D9F
secondary
#75C680
accent
#E35C45
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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