#B22FA9#B22FA9

#B22FA9 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.212 H 331.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B22FA9
RGBrgb(178, 47, 169)
HSLhsl(304, 58%, 44%)
HSVhsv(304, 74%, 70%)
CMYKcmyk(0%, 73.6%, 5.1%, 30.2%)
CIE-LABlab(44.75, 64.94, -37.17)
CIE-LCHlch(44.75, 74.83, 330.21°)
OKLaboklab(55.17% 0.1851 -0.1024)
OKLCHoklch(55.17% 0.212 331)
XYZxyz(26.5380, 14.3647, 38.9034)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FA9 #2FB238
analogous
#7A2FB2 #B22FA9 #B22F68
triadic
#B22FA9 #A9B22F #2FA9B2
tetradic
#B22FA9 #B27A2F #2FB238 #2F68B2
square
#B22FA9 #B27A2F #2FB238 #2F68B2
split-complementary
#B22FA9 #68B22F #2FB27A
monochromatic
#51154D #82227B #B22FA9 #D04EC7 #DD7ED7

Accessibility & contrast

On white

5.42
#B22FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B22FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FA9
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FA9#FFFFFF#000000##FFFFFF
##B22FA91.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235EAC
Deuteranopia (green-blind)
#5870A6
Tritanopia (blue-blind)
#B93F69
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22fa9;
/* rgb */ color: rgb(178, 47, 169);
/* oklch */ color: oklch(55.2% 0.212 331.0);
Tailwind
colors: {
  custom: {
    50: '#cd75c3',
    500: '#b22fa9',
    950: '#000000',
  },
}
SCSS
$custom: #b22fa9;
$custom-light: #cd75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fa9",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 304.122,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55167,
    "c": 0.21157,
    "h": 331
  },
  "luminance": 0.14363
}

Semantic roles & 50–950 ramp

primary
#B22FA9
secondary
#77C67C
accent
#E15146
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B22FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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