#AB5AF4#AB5AF4

#AB5AF4 is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.4% C 0.224 H 305.0°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AB5AF4
RGBrgb(171, 90, 244)
HSLhsl(272, 88%, 65%)
HSVhsv(272, 63%, 96%)
CMYKcmyk(29.9%, 63.1%, 0%, 4.3%)
CIE-LABlab(54.56, 60.23, -64.63)
CIE-LCHlch(54.56, 88.34, 312.98°)
OKLaboklab(63.44% 0.1284 -0.1831)
OKLCHoklch(63.44% 0.224 305)
XYZxyz(36.7763, 22.5021, 87.9763)
Luminance0.2250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AF4 #A3F45A
analogous
#5E5AF4 #AB5AF4 #F45AF0
triadic
#AB5AF4 #F4AB5A #5AF4AB
tetradic
#AB5AF4 #F45E5A #A3F45A #5AF0F4
square
#AB5AF4 #F45E5A #A3F45A #5AF0F4
split-complementary
#AB5AF4 #F0F45A #5AF45E
monochromatic
#6F0DC6 #8E21F0 #AB5AF4 #C893F8 #E5CDFC

Accessibility & contrast

On white

3.82
#AB5AF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#AB5AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AF4
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AF4#FFFFFF#000000##000000
##AB5AF41.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F9
Deuteranopia (green-blind)
#3283F1
Tritanopia (blue-blind)
#9E7B9F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ab5af4;
/* rgb */ color: rgb(171, 90, 244);
/* oklch */ color: oklch(63.4% 0.224 305.0);
Tailwind
colors: {
  custom: {
    50: '#c98df9',
    500: '#ab5af4',
    950: '#000000',
  },
}
SCSS
$custom: #ab5af4;
$custom-light: #c98df9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5af4",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 244
  },
  "hsl": {
    "h": 271.558,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.63437,
    "c": 0.22363,
    "h": 305
  },
  "luminance": 0.22502
}

Semantic roles & 50–950 ramp

primary
#AB5AF4
secondary
#D4EFBB
accent
#E4016D
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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