#AB5EA2#AB5EA2

#AB5EA2 is a mid, vivid purple. Relative luminance 0.193; OKLCH L 59.4% C 0.133 H 331.5°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AB5EA2
RGBrgb(171, 94, 162)
HSLhsl(307, 31%, 52%)
HSVhsv(307, 45%, 67%)
CMYKcmyk(0%, 45%, 5.3%, 32.9%)
CIE-LABlab(51.01, 41.15, -23.35)
CIE-LCHlch(51.01, 47.32, 330.43°)
OKLaboklab(59.44% 0.1169 -0.0634)
OKLCHoklch(59.44% 0.133 331.5)
XYZxyz(27.3186, 19.2735, 36.4566)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5EA2 #5EAB67
analogous
#8E5EAB #AB5EA2 #AB5E7C
triadic
#AB5EA2 #A2AB5E #5EA2AB
tetradic
#AB5EA2 #AB8E5E #5EAB67 #5E7CAB
square
#AB5EA2 #AB8E5E #5EAB67 #5E7CAB
split-complementary
#AB5EA2 #7CAB5E #5EAB8E
monochromatic
#5E3158 #86467E #AB5EA2 #C086B9 #D5AED0

Accessibility & contrast

On white

4.33
#AB5EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#AB5EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5EA2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5EA2#FFFFFF#000000##000000
##AB5EA21.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B73A4
Deuteranopia (green-blind)
#707DA0
Tritanopia (blue-blind)
#B16378
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab5ea2;
/* rgb */ color: rgb(171, 94, 162);
/* oklch */ color: oklch(59.4% 0.133 331.5);
Tailwind
colors: {
  custom: {
    50: '#c68ebd',
    500: '#ab5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ea2;
$custom-light: #c68ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ea2",
  "rgb": {
    "r": 171,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 307.013,
    "s": 31.429,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59435,
    "c": 0.13299,
    "h": 331.5
  },
  "luminance": 0.19272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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