#AB23AF#AB23AF

#AB23AF is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.224 H 326.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AB23AF
RGBrgb(171, 35, 175)
HSLhsl(298, 67%, 41%)
HSVhsv(298, 80%, 69%)
CMYKcmyk(2.3%, 80%, 0%, 31.4%)
CIE-LABlab(42.70, 67.92, -44.07)
CIE-LCHlch(42.70, 80.96, 327.02°)
OKLaboklab(53.59% 0.1876 -0.1225)
OKLCHoklch(53.59% 0.224 326.8)
XYZxyz(25.1331, 12.9570, 41.7263)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB23AF #27AF23
analogous
#6523AF #AB23AF #AF236D
triadic
#AB23AF #AFAB23 #23AFAB
tetradic
#AB23AF #AF6523 #27AF23 #236DAF
square
#AB23AF #AF6523 #27AF23 #236DAF
split-complementary
#AB23AF #6DAF23 #23AF65
monochromatic
#470F49 #79197C #AB23AF #D338D7 #DE6BE1

Accessibility & contrast

On white

5.85
#AB23AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB23AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB23AF
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB23AF#FFFFFF#000000##FFFFFF
##AB23AF1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#496BAC
Tritanopia (blue-blind)
#B03D6A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab23af;
/* rgb */ color: rgb(171, 35, 175);
/* oklch */ color: oklch(53.6% 0.224 326.8);
Tailwind
colors: {
  custom: {
    50: '#c870c7',
    500: '#ab23af',
    950: '#000000',
  },
}
SCSS
$custom: #ab23af;
$custom-light: #c870c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab23af",
  "rgb": {
    "r": 171,
    "g": 35,
    "b": 175
  },
  "hsl": {
    "h": 298.286,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53586,
    "c": 0.2241,
    "h": 326.8
  },
  "luminance": 0.12955
}

Semantic roles & 50–950 ramp

primary
#AB23AF
secondary
#69C766
accent
#EA3E43
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB23AF

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

Preview Lab → · Contrast checker → · Palette generator →

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