#B22FA2#B22FA2

#B22FA2 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.206 H 333.5°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#B22FA2
RGBrgb(178, 47, 162)
HSLhsl(307, 58%, 44%)
HSVhsv(307, 74%, 70%)
CMYKcmyk(0%, 73.6%, 9%, 30.2%)
CIE-LABlab(44.39, 63.86, -33.58)
CIE-LCHlch(44.39, 72.15, 332.26°)
OKLaboklab(54.79% 0.1848 -0.0921)
OKLCHoklch(54.79% 0.206 333.5)
XYZxyz(25.8984, 14.1088, 35.5347)
Luminance0.1411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FA2 #2FB23F
analogous
#812FB2 #B22FA2 #B22F61
triadic
#B22FA2 #A2B22F #2FA2B2
tetradic
#B22FA2 #B2812F #2FB23F #2F61B2
square
#B22FA2 #B2812F #2FB23F #2F61B2
split-complementary
#B22FA2 #61B22F #2FB281
monochromatic
#51154A #822276 #B22FA2 #D04EC0 #DD7ED1

Accessibility & contrast

On white

5.50
#B22FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B22FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FA2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FA2#FFFFFF#000000##FFFFFF
##B22FA21.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5DA5
Deuteranopia (green-blind)
#5B709F
Tritanopia (blue-blind)
#BA3C66
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22fa2;
/* rgb */ color: rgb(178, 47, 162);
/* oklch */ color: oklch(54.8% 0.206 333.5);
Tailwind
colors: {
  custom: {
    50: '#cd75be',
    500: '#b22fa2',
    950: '#000000',
  },
}
SCSS
$custom: #b22fa2;
$custom-light: #cd75be;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fa2",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 307.328,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54788,
    "c": 0.20644,
    "h": 333.5
  },
  "luminance": 0.14107
}

Semantic roles & 50–950 ramp

primary
#B22FA2
secondary
#77C681
accent
#E15946
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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