#B22EA6#B22EA6

#B22EA6 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.210 H 332.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#B22EA6
RGBrgb(178, 46, 166)
HSLhsl(305, 59%, 44%)
HSVhsv(305, 74%, 70%)
CMYKcmyk(0%, 74.2%, 6.7%, 30.2%)
CIE-LABlab(44.48, 64.79, -35.82)
CIE-LCHlch(44.48, 74.03, 331.07°)
OKLaboklab(54.92% 0.1859 -0.0985)
OKLCHoklch(54.92% 0.21 332.1)
XYZxyz(26.2201, 14.1743, 37.4240)
Luminance0.1417 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EA6 #2EB23A
analogous
#7C2EB2 #B22EA6 #B22E64
triadic
#B22EA6 #A6B22E #2EA6B2
tetradic
#B22EA6 #B27C2E #2EB23A #2E64B2
square
#B22EA6 #B27C2E #2EB23A #2E64B2
split-complementary
#B22EA6 #64B22E #2EB27C
monochromatic
#51154B #812179 #B22EA6 #D14CC5 #DD7DD5

Accessibility & contrast

On white

5.48
#B22EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#B22EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22EA6
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22EA6#FFFFFF#000000##FFFFFF
##B22EA61.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255DA9
Deuteranopia (green-blind)
#5970A3
Tritanopia (blue-blind)
#BA3D67
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22ea6;
/* rgb */ color: rgb(178, 46, 166);
/* oklch */ color: oklch(54.9% 0.210 332.1);
Tailwind
colors: {
  custom: {
    50: '#cd75c1',
    500: '#b22ea6',
    950: '#000000',
  },
}
SCSS
$custom: #b22ea6;
$custom-light: #cd75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ea6",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 305.455,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54922,
    "c": 0.21041,
    "h": 332.1
  },
  "luminance": 0.14172
}

Semantic roles & 50–950 ramp

primary
#B22EA6
secondary
#76C67D
accent
#E25446
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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