#B22FAF#B22FAF

#B22FAF is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.216 H 329.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B22FAF
RGBrgb(178, 47, 175)
HSLhsl(301, 58%, 44%)
HSVhsv(301, 74%, 70%)
CMYKcmyk(0%, 73.6%, 1.7%, 30.2%)
CIE-LABlab(45.07, 65.89, -40.22)
CIE-LCHlch(45.07, 77.20, 328.60°)
OKLaboklab(55.5% 0.1852 -0.1112)
OKLCHoklch(55.5% 0.216 329)
XYZxyz(27.1142, 14.5952, 41.9382)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FAF #2FB232
analogous
#742FB2 #B22FAF #B22F6E
triadic
#B22FAF #AFB22F #2FAFB2
tetradic
#B22FAF #B2742F #2FB232 #2F6EB2
square
#B22FAF #B2742F #2FB232 #2F6EB2
split-complementary
#B22FAF #6EB22F #2FB274
monochromatic
#511550 #82227F #B22FAF #D04ECD #DD7EDB

Accessibility & contrast

On white

5.36
#B22FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B22FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FAF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FAF#FFFFFF#000000##FFFFFF
##B22FAF1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1960B2
Deuteranopia (green-blind)
#5571AC
Tritanopia (blue-blind)
#B8426D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22faf;
/* rgb */ color: rgb(178, 47, 175);
/* oklch */ color: oklch(55.5% 0.216 329.0);
Tailwind
colors: {
  custom: {
    50: '#cd75c7',
    500: '#b22faf',
    950: '#000000',
  },
}
SCSS
$custom: #b22faf;
$custom-light: #cd75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b22faf",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 301.374,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55503,
    "c": 0.21607,
    "h": 329
  },
  "luminance": 0.14593
}

Semantic roles & 50–950 ramp

primary
#B22FAF
secondary
#77C679
accent
#E14A46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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