#AB22BD#AB22BD

#AB22BD is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.4% C 0.235 H 322.6°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AB22BD
RGBrgb(171, 34, 189)
HSLhsl(293, 70%, 44%)
HSVhsv(293, 82%, 74%)
CMYKcmyk(9.5%, 82%, 0%, 25.9%)
CIE-LABlab(43.47, 70.50, -51.07)
CIE-LCHlch(43.47, 87.05, 324.08°)
OKLaboklab(54.41% 0.187 -0.143)
OKLCHoklch(54.41% 0.235 322.6)
XYZxyz(26.5510, 13.4777, 49.3372)
Luminance0.1348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB22BD #34BD22
analogous
#5D22BD #AB22BD #BD2281
triadic
#AB22BD #BDAB22 #22BDAB
tetradic
#AB22BD #BD5D22 #34BD22 #2281BD
square
#AB22BD #BD5D22 #34BD22 #2281BD
split-complementary
#AB22BD #81BD22 #22BD5D
monochromatic
#4D0F55 #7C1989 #AB22BD #CA40DD #D973E6

Accessibility & contrast

On white

5.68
#AB22BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AB22BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB22BD
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB22BD#FFFFFF#000000##FFFFFF
##AB22BD1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#3D6CBA
Tritanopia (blue-blind)
#AD4472
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab22bd;
/* rgb */ color: rgb(171, 34, 189);
/* oklch */ color: oklch(54.4% 0.235 322.6);
Tailwind
colors: {
  custom: {
    50: '#c870d2',
    500: '#ab22bd',
    950: '#000000',
  },
}
SCSS
$custom: #ab22bd;
$custom-light: #c870d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab22bd",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 293.032,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5441,
    "c": 0.23544,
    "h": 322.6
  },
  "luminance": 0.13476
}

Semantic roles & 50–950 ramp

primary
#AB22BD
secondary
#79CD6E
accent
#EC3B50
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB22BD

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

Preview Lab → · Contrast checker → · Palette generator →

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