#AB5FA5#AB5FA5

#AB5FA5 is a mid, vivid purple. Relative luminance 0.196; OKLCH L 59.7% C 0.134 H 330.0°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AB5FA5
RGBrgb(171, 95, 165)
HSLhsl(305, 31%, 52%)
HSVhsv(305, 44%, 67%)
CMYKcmyk(0%, 44.4%, 3.5%, 32.9%)
CIE-LABlab(51.34, 41.17, -24.60)
CIE-LCHlch(51.34, 47.96, 329.14°)
OKLaboklab(59.72% 0.1161 -0.0669)
OKLCHoklch(59.72% 0.134 330)
XYZxyz(27.6780, 19.5604, 37.9077)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FA5 #5FAB65
analogous
#8B5FAB #AB5FA5 #AB5F7F
triadic
#AB5FA5 #A5AB5F #5FA5AB
tetradic
#AB5FA5 #AB8B5F #5FAB65 #5F7FAB
square
#AB5FA5 #AB8B5F #5FAB65 #5F7FAB
split-complementary
#AB5FA5 #7FAB5F #5FAB8B
monochromatic
#5E315B #864781 #AB5FA5 #C087BC #D5AFD2

Accessibility & contrast

On white

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

On black

4.91
#AB5FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FA5
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FA5#FFFFFF#000000##000000
##AB5FA51.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B74A7
Deuteranopia (green-blind)
#707EA3
Tritanopia (blue-blind)
#B0657A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab5fa5;
/* rgb */ color: rgb(171, 95, 165);
/* oklch */ color: oklch(59.7% 0.134 330.0);
Tailwind
colors: {
  custom: {
    50: '#c68fc0',
    500: '#ab5fa5',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fa5;
$custom-light: #c68fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fa5",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 304.737,
    "s": 31.148,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59723,
    "c": 0.13399,
    "h": 330
  },
  "luminance": 0.19559
}

Semantic roles & 50–950 ramp

primary
#AB5FA5
secondary
#A2C3A5
accent
#C76960
background
#FCF8FB
surface
#F8F0F7
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AB5FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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