#B22FB7#B22FB7

#B22FB7 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.222 H 326.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B22FB7
RGBrgb(178, 47, 183)
HSLhsl(298, 59%, 45%)
HSVhsv(298, 74%, 72%)
CMYKcmyk(2.7%, 74.3%, 0%, 28.2%)
CIE-LABlab(45.52, 67.20, -44.21)
CIE-LCHlch(45.52, 80.44, 326.66°)
OKLaboklab(55.97% 0.1851 -0.1229)
OKLCHoklch(55.97% 0.222 326.4)
XYZxyz(27.9233, 14.9188, 46.1995)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FB7 #34B72F
analogous
#6E2FB7 #B22FB7 #B72F78
triadic
#B22FB7 #B7B22F #2FB7B2
tetradic
#B22FB7 #B76E2F #34B72F #2F78B7
square
#B22FB7 #B76E2F #34B72F #2F78B7
split-complementary
#B22FB7 #78B72F #2FB76E
monochromatic
#531656 #832286 #B22FB7 #CE51D2 #DB82DF

Accessibility & contrast

On white

5.27
#B22FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B22FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FB7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FB7#FFFFFF#000000##FFFFFF
##B22FB71.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0261BB
Deuteranopia (green-blind)
#5071B4
Tritanopia (blue-blind)
#B74671
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b22fb7;
/* rgb */ color: rgb(178, 47, 183);
/* oklch */ color: oklch(56.0% 0.222 326.4);
Tailwind
colors: {
  custom: {
    50: '#cd76cd',
    500: '#b22fb7',
    950: '#000000',
  },
}
SCSS
$custom: #b22fb7;
$custom-light: #cd76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fb7",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 297.794,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55967,
    "c": 0.22219,
    "h": 326.4
  },
  "luminance": 0.14917
}

Semantic roles & 50–950 ramp

primary
#B22FB7
secondary
#7DC87A
accent
#E2454B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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