#AB5FA2#AB5FA2

#AB5FA2 is a mid, vivid purple. Relative luminance 0.195; OKLCH L 59.6% C 0.131 H 331.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AB5FA2
RGBrgb(171, 95, 162)
HSLhsl(307, 31%, 52%)
HSVhsv(307, 44%, 67%)
CMYKcmyk(0%, 44.4%, 5.3%, 32.9%)
CIE-LABlab(51.21, 40.62, -23.03)
CIE-LCHlch(51.21, 46.70, 330.45°)
OKLaboklab(59.59% 0.1154 -0.0625)
OKLCHoklch(59.59% 0.131 331.6)
XYZxyz(27.4081, 19.4525, 36.4865)
Luminance0.1945 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FA2 #5FAB68
analogous
#8E5FAB #AB5FA2 #AB5F7C
triadic
#AB5FA2 #A2AB5F #5FA2AB
tetradic
#AB5FA2 #AB8E5F #5FAB68 #5F7CAB
square
#AB5FA2 #AB8E5F #5FAB68 #5F7CAB
split-complementary
#AB5FA2 #7CAB5F #5FAB8E
monochromatic
#5E3159 #86477F #AB5FA2 #C087B9 #D5AFD1

Accessibility & contrast

On white

4.29
#AB5FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#AB5FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FA2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FA2#FFFFFF#000000##000000
##AB5FA21.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D73A4
Deuteranopia (green-blind)
#717EA0
Tritanopia (blue-blind)
#B16479
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab5fa2;
/* rgb */ color: rgb(171, 95, 162);
/* oklch */ color: oklch(59.6% 0.131 331.6);
Tailwind
colors: {
  custom: {
    50: '#c58fbd',
    500: '#ab5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fa2;
$custom-light: #c58fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fa2",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 307.105,
    "s": 31.148,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5959,
    "c": 0.13123,
    "h": 331.6
  },
  "luminance": 0.19451
}

Semantic roles & 50–950 ramp

primary
#AB5FA2
secondary
#A2C3A6
accent
#C76D60
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AB5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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