#AB5FAC#AB5FAC

#AB5FAC is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.0% C 0.141 H 326.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AB5FAC
RGBrgb(171, 95, 172)
HSLhsl(299, 32%, 52%)
HSVhsv(299, 45%, 67%)
CMYKcmyk(0.6%, 44.8%, 0%, 32.5%)
CIE-LABlab(51.64, 42.47, -28.23)
CIE-LCHlch(51.64, 51.00, 326.39°)
OKLaboklab(60.05% 0.1175 -0.0773)
OKLCHoklch(60.05% 0.141 326.7)
XYZxyz(28.3326, 19.8223, 41.3554)
Luminance0.1982 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FAC #60AC5F
analogous
#855FAC #AB5FAC #AC5F86
triadic
#AB5FAC #ACAB5F #5FACAB
tetradic
#AB5FAC #AC855F #60AC5F #5F86AC
square
#AB5FAC #AC855F #60AC5F #5F86AC
split-complementary
#AB5FAC #86AC5F #5FAC85
monochromatic
#5F315F #874688 #AB5FAC #C087C1 #D5B0D6

Accessibility & contrast

On white

4.23
#AB5FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AB5FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FAC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FAC#FFFFFF#000000##000000
##AB5FAC1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5875AF
Deuteranopia (green-blind)
#6D7FAA
Tritanopia (blue-blind)
#AF677D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab5fac;
/* rgb */ color: rgb(171, 95, 172);
/* oklch */ color: oklch(60.0% 0.141 326.7);
Tailwind
colors: {
  custom: {
    50: '#c68fc5',
    500: '#ab5fac',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fac;
$custom-light: #c68fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fac",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 299.221,
    "s": 31.687,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60045,
    "c": 0.14066,
    "h": 326.7
  },
  "luminance": 0.19821
}

Semantic roles & 50–950 ramp

primary
#AB5FAC
secondary
#A3C4A3
accent
#C86061
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AB5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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