#B22F9D#B22F9D

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

Color values

HEX#B22F9D
RGBrgb(178, 47, 157)
HSLhsl(310, 58%, 44%)
HSVhsv(310, 74%, 70%)
CMYKcmyk(0%, 73.6%, 11.8%, 30.2%)
CIE-LABlab(44.14, 63.10, -30.98)
CIE-LCHlch(44.14, 70.30, 333.85°)
OKLaboklab(54.53% 0.1844 -0.0846)
OKLCHoklch(54.53% 0.203 335.4)
XYZxyz(25.4628, 13.9346, 33.2404)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22F9D #2FB244
analogous
#862FB2 #B22F9D #B22F5C
triadic
#B22F9D #9DB22F #2F9DB2
tetradic
#B22F9D #B2862F #2FB244 #2F5CB2
square
#B22F9D #B2862F #2FB244 #2F5CB2
split-complementary
#B22F9D #5CB22F #2FB286
monochromatic
#511548 #822272 #B22F9D #D04EBB #DD7ECE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B22F9D#FFFFFF#000000##FFFFFF
##B22F9D1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b22f9d;
/* rgb */ color: rgb(178, 47, 157);
/* oklch */ color: oklch(54.5% 0.203 335.4);
Tailwind
colors: {
  custom: {
    50: '#cd75ba',
    500: '#b22f9d',
    950: '#000000',
  },
}
SCSS
$custom: #b22f9d;
$custom-light: #cd75ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b22f9d",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 309.618,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54527,
    "c": 0.20288,
    "h": 335.4
  },
  "luminance": 0.13932
}

Semantic roles & 50–950 ramp

primary
#B22F9D
secondary
#77C684
accent
#E15F46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B22F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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