#AB5CA2#AB5CA2

#AB5CA2 is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.1% C 0.136 H 331.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB5CA2
RGBrgb(171, 92, 162)
HSLhsl(307, 32%, 52%)
HSVhsv(307, 46%, 67%)
CMYKcmyk(0%, 46.2%, 5.3%, 32.9%)
CIE-LABlab(50.60, 42.21, -23.98)
CIE-LCHlch(50.60, 48.55, 330.40°)
OKLaboklab(59.13% 0.1199 -0.0652)
OKLCHoklch(59.13% 0.136 331.5)
XYZxyz(27.1431, 18.9224, 36.3981)
Luminance0.1892 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CA2 #5CAB65
analogous
#8D5CAB #AB5CA2 #AB5C7B
triadic
#AB5CA2 #A2AB5C #5CA2AB
tetradic
#AB5CA2 #AB8D5C #5CAB65 #5C7BAB
square
#AB5CA2 #AB8D5C #5CAB65 #5C7BAB
split-complementary
#AB5CA2 #7BAB5C #5CAB8D
monochromatic
#5D3058 #85457E #AB5CA2 #C084B9 #D5ADD0

Accessibility & contrast

On white

4.39
#AB5CA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AB5CA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CA2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CA2#FFFFFF#000000##000000
##AB5CA21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5971A4
Deuteranopia (green-blind)
#6F7CA0
Tritanopia (blue-blind)
#B16277
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab5ca2;
/* rgb */ color: rgb(171, 92, 162);
/* oklch */ color: oklch(59.1% 0.136 331.5);
Tailwind
colors: {
  custom: {
    50: '#c68dbd',
    500: '#ab5ca2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ca2;
$custom-light: #c68dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ca2",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 306.835,
    "s": 31.984,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5913,
    "c": 0.13648,
    "h": 331.5
  },
  "luminance": 0.18921
}

Semantic roles & 50–950 ramp

primary
#AB5CA2
secondary
#A0C3A4
accent
#C86C60
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AB5CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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