#AB22FF#AB22FF

#AB22FF is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 59.3% C 0.288 H 306.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB22FF
RGBrgb(171, 34, 255)
HSLhsl(277, 100%, 57%)
HSVhsv(277, 87%, 100%)
CMYKcmyk(32.9%, 86.7%, 0%, 0%)
CIE-LABlab(48.29, 82.68, -80.94)
CIE-LCHlch(48.29, 115.71, 315.61°)
OKLaboklab(59.26% 0.1716 -0.2307)
OKLCHoklch(59.26% 0.288 306.6)
XYZxyz(35.4126, 17.0224, 96.0084)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB22FF #76FF22
analogous
#3D22FF #AB22FF #FF22E4
triadic
#AB22FF #FFAB22 #22FFAB
tetradic
#AB22FF #FF3D22 #76FF22 #22E4FF
square
#AB22FF #FF3D22 #76FF22 #22E4FF
split-complementary
#AB22FF #E4FF22 #22FF3D
monochromatic
#6700A7 #8D00E4 #AB22FF #C25FFF #DA9CFF

Accessibility & contrast

On white

4.77
#AB22FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AB22FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB22FF
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB22FF#FFFFFF#000000##FFFFFF
##AB22FF1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FFF
Deuteranopia (green-blind)
#0073FB
Tritanopia (blue-blind)
#9C6599
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab22ff;
/* rgb */ color: rgb(171, 34, 255);
/* oklch */ color: oklch(59.3% 0.288 306.6);
Tailwind
colors: {
  custom: {
    50: '#cc74ff',
    500: '#ab22ff',
    950: '#000000',
  },
}
SCSS
$custom: #ab22ff;
$custom-light: #cc74ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab22ff",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 255
  },
  "hsl": {
    "h": 277.195,
    "s": 100,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59261,
    "c": 0.28751,
    "h": 306.6
  },
  "luminance": 0.17022
}

Semantic roles & 50–950 ramp

primary
#AB22FF
secondary
#B4EC91
accent
#FF297A
background
#FDF7FF
surface
#FAEEFF
border
#D3C9D7
text
#150A18
muted
#837C86

Preview Lab

Preview with #AB22FF

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

Preview Lab → · Contrast checker → · Palette generator →

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