#B22BC2#B22BC2

#B22BC2 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.3% C 0.235 H 323.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B22BC2
RGBrgb(178, 43, 194)
HSLhsl(294, 64%, 46%)
HSVhsv(294, 78%, 76%)
CMYKcmyk(8.2%, 77.8%, 0%, 23.9%)
CIE-LABlab(45.76, 70.26, -50.27)
CIE-LCHlch(45.76, 86.39, 324.42°)
OKLaboklab(56.34% 0.1878 -0.1405)
OKLCHoklch(56.34% 0.235 323.2)
XYZxyz(28.9607, 15.0896, 52.4156)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BC2 #3BC22B
analogous
#662BC2 #B22BC2 #C22B87
triadic
#B22BC2 #C2B22B #2BC2B2
tetradic
#B22BC2 #C2662B #3BC22B #2B87C2
square
#B22BC2 #C2662B #3BC22B #2B87C2
split-complementary
#B22BC2 #87C22B #2BC266
monochromatic
#56155E #842090 #B22BC2 #CA52D9 #DA84E4

Accessibility & contrast

On white

5.23
#B22BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B22BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BC2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BC2#FFFFFF#000000##FFFFFF
##B22BC21.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#4671BF
Tritanopia (blue-blind)
#B54976
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b22bc2;
/* rgb */ color: rgb(178, 43, 194);
/* oklch */ color: oklch(56.3% 0.235 323.2);
Tailwind
colors: {
  custom: {
    50: '#cd75d5',
    500: '#b22bc2',
    950: '#000000',
  },
}
SCSS
$custom: #b22bc2;
$custom-light: #cd75d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b22bc2",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 293.642,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56342,
    "c": 0.23454,
    "h": 323.2
  },
  "luminance": 0.15088
}

Semantic roles & 50–950 ramp

primary
#B22BC2
secondary
#85CD7C
accent
#E74153
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140914
muted
#837B83

Preview Lab

Preview with #B22BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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