#AB22E3#AB22E3

#AB22E3 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 57.1% C 0.265 H 312.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AB22E3
RGBrgb(171, 34, 227)
HSLhsl(283, 78%, 51%)
HSVhsv(283, 85%, 89%)
CMYKcmyk(24.7%, 85%, 0%, 11%)
CIE-LABlab(46.11, 77.31, -68.74)
CIE-LCHlch(46.11, 103.45, 318.36°)
OKLaboklab(57.08% 0.1797 -0.1949)
OKLCHoklch(57.08% 0.265 312.7)
XYZxyz(31.2292, 15.3490, 73.9757)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB22E3 #5AE322
analogous
#4A22E3 #AB22E3 #E322BA
triadic
#AB22E3 #E3AB22 #22E3AB
tetradic
#AB22E3 #E34A22 #5AE322 #22BAE3
square
#AB22E3 #E34A22 #5AE322 #22BAE3
split-complementary
#AB22E3 #BAE322 #22E34A
monochromatic
#5C107B #8416B1 #AB22E3 #C058EA #D48FF1

Accessibility & contrast

On white

5.16
#AB22E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AB22E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB22E3
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB22E3#FFFFFF#000000##FFFFFF
##AB22E31.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E8
Deuteranopia (green-blind)
#0070DF
Tritanopia (blue-blind)
#A45788
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab22e3;
/* rgb */ color: rgb(171, 34, 227);
/* oklch */ color: oklch(57.1% 0.265 312.7);
Tailwind
colors: {
  custom: {
    50: '#ca72ed',
    500: '#ab22e3',
    950: '#000000',
  },
}
SCSS
$custom: #ab22e3;
$custom-light: #ca72ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab22e3",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 227
  },
  "hsl": {
    "h": 282.591,
    "s": 77.51,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57081,
    "c": 0.26506,
    "h": 312.7
  },
  "luminance": 0.15348
}

Semantic roles & 50–950 ramp

primary
#AB22E3
secondary
#9EDB86
accent
#F4346C
background
#FDF7FE
surface
#FAEDFD
border
#D3C8D5
text
#140916
muted
#837B84

Preview Lab

Preview with #AB22E3

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

Preview Lab → · Contrast checker → · Palette generator →

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