#AB5AAA#AB5AAA

#AB5AAA is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.2% C 0.147 H 327.7°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB5AAA
RGBrgb(171, 90, 170)
HSLhsl(301, 33%, 51%)
HSVhsv(301, 47%, 67%)
CMYKcmyk(0%, 47.4%, 0.6%, 32.9%)
CIE-LABlab(50.54, 44.72, -28.76)
CIE-LCHlch(50.54, 53.17, 327.25°)
OKLaboklab(59.2% 0.1245 -0.0787)
OKLCHoklch(59.2% 0.147 327.7)
XYZxyz(27.7060, 18.8740, 40.2061)
Luminance0.1887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AAA #5AAB5B
analogous
#835AAB #AB5AAA #AB5A81
triadic
#AB5AAA #AAAB5A #5AAAAB
tetradic
#AB5AAA #AB835A #5AAB5B #5A81AB
square
#AB5AAA #AB835A #5AAB5B #5A81AB
split-complementary
#AB5AAA #81AB5A #5AAB83
monochromatic
#5C2F5B #844384 #AB5AAA #C083BF #D4ABD4

Accessibility & contrast

On white

4.40
#AB5AAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#AB5AAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AAA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AAA#FFFFFF#000000##000000
##AB5AAA1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5372AD
Deuteranopia (green-blind)
#6B7CA8
Tritanopia (blue-blind)
#B0627A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab5aaa;
/* rgb */ color: rgb(171, 90, 170);
/* oklch */ color: oklch(59.2% 0.147 327.7);
Tailwind
colors: {
  custom: {
    50: '#c68bc3',
    500: '#ab5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #ab5aaa;
$custom-light: #c68bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5aaa",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 300.741,
    "s": 32.53,
    "l": 51.176
  },
  "oklch": {
    "l": 0.592,
    "c": 0.14732,
    "h": 327.7
  },
  "luminance": 0.18873
}

Semantic roles & 50–950 ramp

primary
#AB5AAA
secondary
#9FC29F
accent
#C9605F
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C12
muted
#827D81

Preview Lab

Preview with #AB5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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