#B22AEA#B22AEA

#B22AEA is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 59.0% C 0.267 H 312.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B22AEA
RGBrgb(178, 42, 234)
HSLhsl(283, 82%, 54%)
HSVhsv(283, 82%, 92%)
CMYKcmyk(23.9%, 82.1%, 0%, 8.2%)
CIE-LABlab(48.34, 77.74, -69.03)
CIE-LCHlch(48.34, 103.97, 318.40°)
OKLaboklab(59% 0.182 -0.1956)
OKLCHoklch(59% 0.267 312.9)
XYZxyz(34.0367, 17.0625, 79.3264)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22AEA #62EA2A
analogous
#522AEA #B22AEA #EA2AC2
triadic
#B22AEA #EAB22A #2AEAB2
tetradic
#B22AEA #EA522A #62EA2A #2AC2EA
square
#B22AEA #EA522A #62EA2A #2AC2EA
split-complementary
#B22AEA #C2EA2A #2AEA52
monochromatic
#670E8C #9013C4 #B22AEA #C662EF #DA99F5

Accessibility & contrast

On white

4.76
#B22AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#B22AEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22AEA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22AEA#FFFFFF#000000##FFFFFF
##B22AEA1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEF
Deuteranopia (green-blind)
#0075E6
Tritanopia (blue-blind)
#AC5C8D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b22aea;
/* rgb */ color: rgb(178, 42, 234);
/* oklch */ color: oklch(59.0% 0.267 312.9);
Tailwind
colors: {
  custom: {
    50: '#cf76f2',
    500: '#b22aea',
    950: '#000000',
  },
}
SCSS
$custom: #b22aea;
$custom-light: #cf76f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b22aea",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 234
  },
  "hsl": {
    "h": 282.5,
    "s": 82.051,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59003,
    "c": 0.26713,
    "h": 312.9
  },
  "luminance": 0.17061
}

Semantic roles & 50–950 ramp

primary
#B22AEA
secondary
#A7E18F
accent
#F82F6A
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#150A17
muted
#837C85

Preview Lab

Preview with #B22AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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