#AB3EC7#AB3EC7

#AB3EC7 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.3% C 0.216 H 318.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB3EC7
RGBrgb(171, 62, 199)
HSLhsl(288, 55%, 51%)
HSVhsv(288, 69%, 78%)
CMYKcmyk(14.1%, 68.8%, 0%, 22%)
CIE-LABlab(47.27, 63.20, -50.80)
CIE-LCHlch(47.27, 81.09, 321.21°)
OKLaboklab(57.31% 0.1619 -0.1424)
OKLCHoklch(57.31% 0.216 318.7)
XYZxyz(28.8246, 16.2280, 55.6358)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3EC7 #5AC73E
analogous
#663EC7 #AB3EC7 #C73E9E
triadic
#AB3EC7 #C7AB3E #3EC7AB
tetradic
#AB3EC7 #C7663E #5AC73E #3E9EC7
square
#AB3EC7 #C7663E #5AC73E #3E9EC7
split-complementary
#AB3EC7 #9EC73E #3EC766
monochromatic
#5C1F6B #842D9B #AB3EC7 #C06DD5 #D49DE3

Accessibility & contrast

On white

4.95
#AB3EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AB3EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3EC7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3EC7#FFFFFF#000000##FFFFFF
##AB3EC71.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#4674C4
Tritanopia (blue-blind)
#AB587E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab3ec7;
/* rgb */ color: rgb(171, 62, 199);
/* oklch */ color: oklch(57.3% 0.216 318.7);
Tailwind
colors: {
  custom: {
    50: '#c87cd9',
    500: '#ab3ec7',
    950: '#000000',
  },
}
SCSS
$custom: #ab3ec7;
$custom-light: #c87cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3ec7",
  "rgb": {
    "r": 171,
    "g": 62,
    "b": 199
  },
  "hsl": {
    "h": 287.737,
    "s": 55.02,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57306,
    "c": 0.21562,
    "h": 318.7
  },
  "luminance": 0.16227
}

Semantic roles & 50–950 ramp

primary
#AB3EC7
secondary
#9FCF92
accent
#DE4968
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB3EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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