#AB3FAC#AB3FAC

#AB3FAC is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.8% C 0.191 H 327.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AB3FAC
RGBrgb(171, 63, 172)
HSLhsl(299, 46%, 46%)
HSVhsv(299, 63%, 67%)
CMYKcmyk(0.6%, 63.4%, 0%, 32.5%)
CIE-LABlab(45.90, 57.85, -37.21)
CIE-LCHlch(45.90, 68.79, 327.25°)
OKLaboklab(55.83% 0.1607 -0.1028)
OKLCHoklch(55.83% 0.191 327.4)
XYZxyz(26.0181, 15.1932, 40.5839)
Luminance0.1519 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB3FAC #40AC3F
analogous
#743FAC #AB3FAC #AC3F76
triadic
#AB3FAC #ACAB3F #3FACAB
tetradic
#AB3FAC #AC743F #40AC3F #3F76AC
square
#AB3FAC #AC743F #40AC3F #3F76AC
split-complementary
#AB3FAC #76AC3F #3FAC74
monochromatic
#521E52 #7E2F7F #AB3FAC #C563C6 #D58FD6

Accessibility & contrast

On white

5.20
#AB3FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#AB3FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB3FAC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB3FAC#FFFFFF#000000##FFFFFF
##AB3FAC1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3064AF
Deuteranopia (green-blind)
#5872A9
Tritanopia (blue-blind)
#B04E70
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab3fac;
/* rgb */ color: rgb(171, 63, 172);
/* oklch */ color: oklch(55.8% 0.191 327.4);
Tailwind
colors: {
  custom: {
    50: '#c77cc5',
    500: '#ab3fac',
    950: '#000000',
  },
}
SCSS
$custom: #ab3fac;
$custom-light: #c77cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab3fac",
  "rgb": {
    "r": 171,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 299.45,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55826,
    "c": 0.19082,
    "h": 327.4
  },
  "luminance": 0.15191
}

Semantic roles & 50–950 ramp

primary
#AB3FAC
secondary
#86C186
accent
#D65253
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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