#AB5EC2#AB5EC2

#AB5EC2 is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.0% C 0.165 H 318.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AB5EC2
RGBrgb(171, 94, 194)
HSLhsl(286, 45%, 56%)
HSVhsv(286, 52%, 76%)
CMYKcmyk(11.9%, 51.5%, 0%, 23.9%)
CIE-LABlab(52.46, 47.34, -39.67)
CIE-LCHlch(52.46, 61.76, 320.04°)
OKLaboklab(61% 0.1224 -0.1102)
OKLCHoklch(61% 0.165 318)
XYZxyz(30.5336, 20.5595, 53.3885)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5EC2 #75C25E
analogous
#795EC2 #AB5EC2 #C25EA7
triadic
#AB5EC2 #C2AB5E #5EC2AB
tetradic
#AB5EC2 #C2795E #75C25E #5EA7C2
square
#AB5EC2 #C2795E #75C25E #5EA7C2
split-complementary
#AB5EC2 #A7C25E #5EC279
monochromatic
#672E78 #8D3EA4 #AB5EC2 #C28AD3 #D9B7E4

Accessibility & contrast

On white

4.11
#AB5EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AB5EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5EC2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5EC2#FFFFFF#000000##000000
##AB5EC21.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A78C5
Deuteranopia (green-blind)
#6280BF
Tritanopia (blue-blind)
#AB6D87
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab5ec2;
/* rgb */ color: rgb(171, 94, 194);
/* oklch */ color: oklch(61.0% 0.165 318.0);
Tailwind
colors: {
  custom: {
    50: '#c68ed5',
    500: '#ab5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ec2;
$custom-light: #c68ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ec2",
  "rgb": {
    "r": 171,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 286.2,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60995,
    "c": 0.16467,
    "h": 318
  },
  "luminance": 0.20558
}

Semantic roles & 50–950 ramp

primary
#AB5EC2
secondary
#B3D2A9
accent
#D55371
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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