#AB3FA7#AB3FA7

#AB3FA7 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.187 H 329.2°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AB3FA7
RGBrgb(171, 63, 167)
HSLhsl(302, 46%, 46%)
HSVhsv(302, 63%, 67%)
CMYKcmyk(0%, 63.2%, 2.3%, 32.9%)
CIE-LABlab(45.64, 56.99, -34.66)
CIE-LCHlch(45.64, 66.70, 328.69°)
OKLaboklab(55.56% 0.1604 -0.0955)
OKLCHoklch(55.56% 0.187 329.2)
XYZxyz(25.5469, 15.0047, 38.1024)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3FA7 #3FAB43
analogous
#793FAB #AB3FA7 #AB3F71
triadic
#AB3FA7 #A7AB3F #3FA7AB
tetradic
#AB3FA7 #AB793F #3FAB43 #3F71AB
square
#AB3FA7 #AB793F #3FAB43 #3F71AB
split-complementary
#AB3FA7 #71AB3F #3FAB79
monochromatic
#521E50 #7E2F7B #AB3FA7 #C562C1 #D68FD3

Accessibility & contrast

On white

5.25
#AB3FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AB3FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3FA7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3FA7#FFFFFF#000000##FFFFFF
##AB3FA71.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3563AA
Deuteranopia (green-blind)
#5B71A4
Tritanopia (blue-blind)
#B14C6D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab3fa7;
/* rgb */ color: rgb(171, 63, 167);
/* oklch */ color: oklch(55.6% 0.187 329.2);
Tailwind
colors: {
  custom: {
    50: '#c77cc1',
    500: '#ab3fa7',
    950: '#000000',
  },
}
SCSS
$custom: #ab3fa7;
$custom-light: #c77cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3fa7",
  "rgb": {
    "r": 171,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 302.222,
    "s": 46.154,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55556,
    "c": 0.18665,
    "h": 329.2
  },
  "luminance": 0.15003
}

Semantic roles & 50–950 ramp

primary
#AB3FA7
secondary
#85C187
accent
#D65752
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB3FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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