#B22EA2#B22EA2

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

Color values

HEX#B22EA2
RGBrgb(178, 46, 162)
HSLhsl(307, 59%, 44%)
HSVhsv(307, 74%, 70%)
CMYKcmyk(0%, 74.2%, 9%, 30.2%)
CIE-LABlab(44.28, 64.18, -33.76)
CIE-LCHlch(44.28, 72.51, 332.26°)
OKLaboklab(54.71% 0.1857 -0.0926)
OKLCHoklch(54.71% 0.208 333.5)
XYZxyz(25.8589, 14.0298, 35.5215)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EA2 #2EB23E
analogous
#802EB2 #B22EA2 #B22E60
triadic
#B22EA2 #A2B22E #2EA2B2
tetradic
#B22EA2 #B2802E #2EB23E #2E60B2
square
#B22EA2 #B2802E #2EB23E #2E60B2
split-complementary
#B22EA2 #60B22E #2EB280
monochromatic
#511549 #812176 #B22EA2 #D14CC1 #DD7DD2

Accessibility & contrast

On white

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

On black

3.81
#B22EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B22EA2#FFFFFF#000000##FFFFFF
##B22EA21.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA5
Deuteranopia (green-blind)
#5B6F9F
Tritanopia (blue-blind)
#BA3B65
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22ea2;
/* rgb */ color: rgb(178, 46, 162);
/* oklch */ color: oklch(54.7% 0.208 333.5);
Tailwind
colors: {
  custom: {
    50: '#cd74be',
    500: '#b22ea2',
    950: '#000000',
  },
}
SCSS
$custom: #b22ea2;
$custom-light: #cd74be;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ea2",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 307.273,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54707,
    "c": 0.20752,
    "h": 333.5
  },
  "luminance": 0.14028
}

Semantic roles & 50–950 ramp

primary
#B22EA2
secondary
#76C680
accent
#E25946
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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