#B22FB6#B22FB6

#B22FB6 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.221 H 326.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B22FB6
RGBrgb(178, 47, 182)
HSLhsl(298, 59%, 45%)
HSVhsv(298, 74%, 71%)
CMYKcmyk(2.2%, 74.2%, 0%, 28.6%)
CIE-LABlab(45.47, 67.04, -43.72)
CIE-LCHlch(45.47, 80.03, 326.89°)
OKLaboklab(55.91% 0.1852 -0.1214)
OKLCHoklch(55.91% 0.221 326.7)
XYZxyz(27.8196, 14.8773, 45.6532)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FB6 #33B62F
analogous
#6E2FB6 #B22FB6 #B62F77
triadic
#B22FB6 #B6B22F #2FB6B2
tetradic
#B22FB6 #B66E2F #33B62F #2F77B6
square
#B22FB6 #B66E2F #33B62F #2F77B6
split-complementary
#B22FB6 #77B62F #2FB66E
monochromatic
#531655 #822285 #B22FB6 #CE50D2 #DC81DE

Accessibility & contrast

On white

5.28
#B22FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B22FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FB6
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FB6#FFFFFF#000000##FFFFFF
##B22FB61.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0661BA
Deuteranopia (green-blind)
#5171B3
Tritanopia (blue-blind)
#B74671
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b22fb6;
/* rgb */ color: rgb(178, 47, 182);
/* oklch */ color: oklch(55.9% 0.221 326.7);
Tailwind
colors: {
  custom: {
    50: '#cd76cc',
    500: '#b22fb6',
    950: '#000000',
  },
}
SCSS
$custom: #b22fb6;
$custom-light: #cd76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fb6",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 298.222,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55908,
    "c": 0.22141,
    "h": 326.7
  },
  "luminance": 0.14875
}

Semantic roles & 50–950 ramp

primary
#B22FB6
secondary
#7CC779
accent
#E2464A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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