#B22CA6#B22CA6

#B22CA6 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.212 H 332.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B22CA6
RGBrgb(178, 44, 166)
HSLhsl(305, 60%, 44%)
HSVhsv(305, 75%, 70%)
CMYKcmyk(0%, 75.3%, 6.7%, 30.2%)
CIE-LABlab(44.26, 65.41, -36.16)
CIE-LCHlch(44.26, 74.74, 331.07°)
OKLaboklab(54.77% 0.1877 -0.0995)
OKLCHoklch(54.77% 0.212 332.1)
XYZxyz(26.1438, 14.0217, 37.3985)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22CA6 #2CB238
analogous
#7B2CB2 #B22CA6 #B22C63
triadic
#B22CA6 #A6B22C #2CA6B2
tetradic
#B22CA6 #B27B2C #2CB238 #2C63B2
square
#B22CA6 #B27B2C #2CB238 #2C63B2
split-complementary
#B22CA6 #63B22C #2CB27B
monochromatic
#50144A #812078 #B22CA6 #D249C6 #DE7AD5

Accessibility & contrast

On white

5.52
#B22CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#B22CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22CA6
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22CA6#FFFFFF#000000##FFFFFF
##B22CA61.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225DA9
Deuteranopia (green-blind)
#586FA3
Tritanopia (blue-blind)
#BA3C67
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22ca6;
/* rgb */ color: rgb(178, 44, 166);
/* oklch */ color: oklch(54.8% 0.212 332.1);
Tailwind
colors: {
  custom: {
    50: '#cd74c1',
    500: '#b22ca6',
    950: '#000000',
  },
}
SCSS
$custom: #b22ca6;
$custom-light: #cd74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ca6",
  "rgb": {
    "r": 178,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 305.373,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54766,
    "c": 0.21247,
    "h": 332.1
  },
  "luminance": 0.1402
}

Semantic roles & 50–950 ramp

primary
#B22CA6
secondary
#73C67B
accent
#E45344
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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