#B22FB2#B22FB2

#B22FB2 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.218 H 328.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#B22FB2
RGBrgb(178, 47, 178)
HSLhsl(300, 58%, 44%)
HSVhsv(300, 74%, 70%)
CMYKcmyk(0%, 73.6%, 0%, 30.2%)
CIE-LABlab(45.24, 66.38, -41.72)
CIE-LCHlch(45.24, 78.40, 327.85°)
OKLaboklab(55.68% 0.1852 -0.1156)
OKLCHoklch(55.68% 0.218 328)
XYZxyz(27.4122, 14.7144, 43.5072)
Luminance0.1471 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FB2 #2FB22F
analogous
#712FB2 #B22FB2 #B22F71
triadic
#B22FB2 #B2B22F #2FB2B2
tetradic
#B22FB2 #B2712F #2FB22F #2F71B2
square
#B22FB2 #B2712F #2FB22F #2F71B2
split-complementary
#B22FB2 #71B22F #2FB271
monochromatic
#511551 #822282 #B22FB2 #D04ED0 #DD7EDD

Accessibility & contrast

On white

5.33
#B22FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B22FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FB2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FB2#FFFFFF#000000##FFFFFF
##B22FB21.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1360B6
Deuteranopia (green-blind)
#5371AF
Tritanopia (blue-blind)
#B8446E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22fb2;
/* rgb */ color: rgb(178, 47, 178);
/* oklch */ color: oklch(55.7% 0.218 328.0);
Tailwind
colors: {
  custom: {
    50: '#cd75c9',
    500: '#b22fb2',
    950: '#000000',
  },
}
SCSS
$custom: #b22fb2;
$custom-light: #cd75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fb2",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55675,
    "c": 0.21834,
    "h": 328
  },
  "luminance": 0.14712
}

Semantic roles & 50–950 ramp

primary
#B22FB2
secondary
#77C677
accent
#E14646
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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