#B22F9E#B22F9E

#B22F9E is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.6% C 0.204 H 335.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B22F9E
RGBrgb(178, 47, 158)
HSLhsl(309, 58%, 44%)
HSVhsv(309, 74%, 70%)
CMYKcmyk(0%, 73.6%, 11.2%, 30.2%)
CIE-LABlab(44.19, 63.25, -31.50)
CIE-LCHlch(44.19, 70.66, 333.53°)
OKLaboklab(54.58% 0.1845 -0.0861)
OKLCHoklch(54.58% 0.204 335)
XYZxyz(25.5485, 13.9689, 33.6918)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22F9E #2FB243
analogous
#852FB2 #B22F9E #B22F5D
triadic
#B22F9E #9EB22F #2F9EB2
tetradic
#B22F9E #B2852F #2FB243 #2F5DB2
square
#B22F9E #B2852F #2FB243 #2F5DB2
split-complementary
#B22F9E #5DB22F #2FB285
monochromatic
#511548 #822273 #B22F9E #D04EBC #DD7ECF

Accessibility & contrast

On white

5.54
#B22F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B22F9E
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22F9E#FFFFFF#000000##FFFFFF
##B22F9E1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5CA1
Deuteranopia (green-blind)
#5D6F9B
Tritanopia (blue-blind)
#BB3A63
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22f9e;
/* rgb */ color: rgb(178, 47, 158);
/* oklch */ color: oklch(54.6% 0.204 335.0);
Tailwind
colors: {
  custom: {
    50: '#cd75bb',
    500: '#b22f9e',
    950: '#000000',
  },
}
SCSS
$custom: #b22f9e;
$custom-light: #cd75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b22f9e",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 309.16,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54579,
    "c": 0.20359,
    "h": 335
  },
  "luminance": 0.13967
}

Semantic roles & 50–950 ramp

primary
#B22F9E
secondary
#77C683
accent
#E15E46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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