#AB23AD#AB23AD

#AB23AD is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.223 H 327.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AB23AD
RGBrgb(171, 35, 173)
HSLhsl(299, 66%, 41%)
HSVhsv(299, 80%, 68%)
CMYKcmyk(1.2%, 79.8%, 0%, 32.2%)
CIE-LABlab(42.58, 67.59, -43.07)
CIE-LCHlch(42.58, 80.15, 327.50°)
OKLaboklab(53.46% 0.1877 -0.1196)
OKLCHoklch(53.46% 0.223 327.5)
XYZxyz(24.9381, 12.8790, 40.6995)
Luminance0.1288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB23AD #25AD23
analogous
#6623AD #AB23AD #AD236A
triadic
#AB23AD #ADAB23 #23ADAB
tetradic
#AB23AD #AD6623 #25AD23 #236AAD
square
#AB23AD #AD6623 #25AD23 #236AAD
split-complementary
#AB23AD #6AAD23 #23AD66
monochromatic
#460E47 #79197A #AB23AD #D437D6 #DF6AE1

Accessibility & contrast

On white

5.87
#AB23AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB23AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB23AD
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB23AD#FFFFFF#000000##FFFFFF
##AB23AD1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#4A6AAA
Tritanopia (blue-blind)
#B03C69
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab23ad;
/* rgb */ color: rgb(171, 35, 173);
/* oklch */ color: oklch(53.5% 0.223 327.5);
Tailwind
colors: {
  custom: {
    50: '#c870c6',
    500: '#ab23ad',
    950: '#000000',
  },
}
SCSS
$custom: #ab23ad;
$custom-light: #c870c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab23ad",
  "rgb": {
    "r": 171,
    "g": 35,
    "b": 173
  },
  "hsl": {
    "h": 299.13,
    "s": 66.346,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53464,
    "c": 0.22261,
    "h": 327.5
  },
  "luminance": 0.12877
}

Semantic roles & 50–950 ramp

primary
#AB23AD
secondary
#67C765
accent
#E93F41
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB23AD

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

Preview Lab → · Contrast checker → · Palette generator →

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