#AB5ABA#AB5ABA

#AB5ABA is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.0% C 0.163 H 321.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB5ABA
RGBrgb(171, 90, 186)
HSLhsl(291, 41%, 54%)
HSVhsv(291, 52%, 73%)
CMYKcmyk(8.1%, 51.6%, 0%, 27.1%)
CIE-LABlab(51.29, 47.79, -36.91)
CIE-LCHlch(51.29, 60.38, 322.32°)
OKLaboklab(60% 0.127 -0.1022)
OKLCHoklch(60% 0.163 321.2)
XYZxyz(29.3127, 19.5167, 48.6679)
Luminance0.1951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5ABA #69BA5A
analogous
#7B5ABA #AB5ABA #BA5A99
triadic
#AB5ABA #BAAB5A #5ABAAB
tetradic
#AB5ABA #BA7B5A #69BA5A #5A99BA
square
#AB5ABA #BA7B5A #69BA5A #5A99BA
split-complementary
#AB5ABA #99BA5A #5ABA7B
monochromatic
#622D6C #8A3F97 #AB5ABA #C185CC #D7B0DE

Accessibility & contrast

On white

4.28
#AB5ABA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AB5ABA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5ABA
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5ABA#FFFFFF#000000##000000
##AB5ABA1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A74BD
Deuteranopia (green-blind)
#637DB7
Tritanopia (blue-blind)
#AD6782
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab5aba;
/* rgb */ color: rgb(171, 90, 186);
/* oklch */ color: oklch(60.0% 0.163 321.2);
Tailwind
colors: {
  custom: {
    50: '#c68ccf',
    500: '#ab5aba',
    950: '#000000',
  },
}
SCSS
$custom: #ab5aba;
$custom-light: #c68ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5aba",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 290.625,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59997,
    "c": 0.16297,
    "h": 321.2
  },
  "luminance": 0.19515
}

Semantic roles & 50–950 ramp

primary
#AB5ABA
secondary
#AACCA3
accent
#D1576A
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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