#B22FAB#B22FAB

#B22FAB is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.3% C 0.213 H 330.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B22FAB
RGBrgb(178, 47, 171)
HSLhsl(303, 58%, 44%)
HSVhsv(303, 74%, 70%)
CMYKcmyk(0%, 73.6%, 3.9%, 30.2%)
CIE-LABlab(44.86, 65.25, -38.19)
CIE-LCHlch(44.86, 75.61, 329.66°)
OKLaboklab(55.28% 0.1852 -0.1054)
OKLCHoklch(55.28% 0.213 330.4)
XYZxyz(26.7272, 14.4404, 39.8998)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FAB #2FB236
analogous
#782FB2 #B22FAB #B22F6A
triadic
#B22FAB #ABB22F #2FABB2
tetradic
#B22FAB #B2782F #2FB236 #2F6AB2
square
#B22FAB #B2782F #2FB236 #2F6AB2
split-complementary
#B22FAB #6AB22F #2FB278
monochromatic
#51154E #82227C #B22FAB #D04EC9 #DD7ED8

Accessibility & contrast

On white

5.40
#B22FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B22FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FAB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FAB#FFFFFF#000000##FFFFFF
##B22FAB1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205FAE
Deuteranopia (green-blind)
#5770A8
Tritanopia (blue-blind)
#B9406A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22fab;
/* rgb */ color: rgb(178, 47, 171);
/* oklch */ color: oklch(55.3% 0.213 330.4);
Tailwind
colors: {
  custom: {
    50: '#cd75c4',
    500: '#b22fab',
    950: '#000000',
  },
}
SCSS
$custom: #b22fab;
$custom-light: #cd75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fab",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 303.206,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55277,
    "c": 0.21306,
    "h": 330.4
  },
  "luminance": 0.14438
}

Semantic roles & 50–950 ramp

primary
#B22FAB
secondary
#77C67B
accent
#E14F46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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