#B22CA2#B22CA2

#B22CA2 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.5% C 0.210 H 333.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#B22CA2
RGBrgb(178, 44, 162)
HSLhsl(307, 60%, 44%)
HSVhsv(307, 75%, 70%)
CMYKcmyk(0%, 75.3%, 9%, 30.2%)
CIE-LABlab(44.06, 64.80, -34.10)
CIE-LCHlch(44.06, 73.23, 332.24°)
OKLaboklab(54.55% 0.1876 -0.0935)
OKLCHoklch(54.55% 0.21 333.5)
XYZxyz(25.7826, 13.8772, 35.4961)
Luminance0.1388 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22CA2 #2CB23C
analogous
#7F2CB2 #B22CA2 #B22C5F
triadic
#B22CA2 #A2B22C #2CA2B2
tetradic
#B22CA2 #B27F2C #2CB23C #2C5FB2
square
#B22CA2 #B27F2C #2CB23C #2C5FB2
split-complementary
#B22CA2 #5FB22C #2CB27F
monochromatic
#501449 #812075 #B22CA2 #D249C2 #DE7AD2

Accessibility & contrast

On white

5.56
#B22CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B22CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22CA2
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22CA2#FFFFFF#000000##FFFFFF
##B22CA21.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#5A6F9F
Tritanopia (blue-blind)
#BA3A65
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22ca2;
/* rgb */ color: rgb(178, 44, 162);
/* oklch */ color: oklch(54.5% 0.210 333.5);
Tailwind
colors: {
  custom: {
    50: '#cd74be',
    500: '#b22ca2',
    950: '#000000',
  },
}
SCSS
$custom: #b22ca2;
$custom-light: #cd74be;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ca2",
  "rgb": {
    "r": 178,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 307.164,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54549,
    "c": 0.2096,
    "h": 333.5
  },
  "luminance": 0.13875
}

Semantic roles & 50–950 ramp

primary
#B22CA2
secondary
#73C67D
accent
#E45744
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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