#AB5AF1#AB5AF1

#AB5AF1 is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.2% C 0.220 H 305.7°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AB5AF1
RGBrgb(171, 90, 241)
HSLhsl(272, 84%, 65%)
HSVhsv(272, 63%, 95%)
CMYKcmyk(29%, 62.7%, 0%, 5.5%)
CIE-LABlab(54.37, 59.54, -63.26)
CIE-LCHlch(54.37, 86.88, 313.27°)
OKLaboklab(63.24% 0.1286 -0.1791)
OKLCHoklch(63.24% 0.22 305.7)
XYZxyz(36.3245, 22.3214, 85.5969)
Luminance0.2232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AF1 #A0F15A
analogous
#5F5AF1 #AB5AF1 #F15AEC
triadic
#AB5AF1 #F1AB5A #5AF1AB
tetradic
#AB5AF1 #F15F5A #A0F15A #5AECF1
square
#AB5AF1 #F15F5A #A0F15A #5AECF1
split-complementary
#AB5AF1 #ECF15A #5AF15F
monochromatic
#6F10C0 #8E22EC #AB5AF1 #C892F6 #E4CBFB

Accessibility & contrast

On white

3.84
#AB5AF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#AB5AF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AF1
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AF1#FFFFFF#000000##000000
##AB5AF11.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F6
Deuteranopia (green-blind)
#3682EE
Tritanopia (blue-blind)
#9F7A9E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ab5af1;
/* rgb */ color: rgb(171, 90, 241);
/* oklch */ color: oklch(63.2% 0.220 305.7);
Tailwind
colors: {
  custom: {
    50: '#c88df6',
    500: '#ab5af1',
    950: '#000000',
  },
}
SCSS
$custom: #ab5af1;
$custom-light: #c88df6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5af1",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 241
  },
  "hsl": {
    "h": 272.185,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.6324,
    "c": 0.22046,
    "h": 305.7
  },
  "luminance": 0.22321
}

Semantic roles & 50–950 ramp

primary
#AB5AF1
secondary
#D2EDBA
accent
#E1056B
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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