#B22FAC#B22FAC

#B22FAC is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.214 H 330.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#B22FAC
RGBrgb(178, 47, 172)
HSLhsl(303, 58%, 44%)
HSVhsv(303, 74%, 70%)
CMYKcmyk(0%, 73.6%, 3.4%, 30.2%)
CIE-LABlab(44.91, 65.41, -38.70)
CIE-LCHlch(44.91, 76.00, 329.39°)
OKLaboklab(55.33% 0.1852 -0.1068)
OKLCHoklch(55.33% 0.214 330)
XYZxyz(26.8229, 14.4786, 40.4037)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FAC #2FB235
analogous
#772FB2 #B22FAC #B22F6B
triadic
#B22FAC #ACB22F #2FACB2
tetradic
#B22FAC #B2772F #2FB235 #2F6BB2
square
#B22FAC #B2772F #2FB235 #2F6BB2
split-complementary
#B22FAC #6BB22F #2FB277
monochromatic
#51154E #82227D #B22FAC #D04ECA #DD7ED9

Accessibility & contrast

On white

5.39
#B22FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B22FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FAC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FAC#FFFFFF#000000##FFFFFF
##B22FAC1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5FAF
Deuteranopia (green-blind)
#5670A9
Tritanopia (blue-blind)
#B9416B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22fac;
/* rgb */ color: rgb(178, 47, 172);
/* oklch */ color: oklch(55.3% 0.214 330.0);
Tailwind
colors: {
  custom: {
    50: '#cd75c5',
    500: '#b22fac',
    950: '#000000',
  },
}
SCSS
$custom: #b22fac;
$custom-light: #cd75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fac",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 302.748,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55333,
    "c": 0.2138,
    "h": 330
  },
  "luminance": 0.14477
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B22FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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