#AB5AF7#AB5AF7

#AB5AF7 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.6% C 0.227 H 304.4°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AB5AF7
RGBrgb(171, 90, 247)
HSLhsl(271, 91%, 66%)
HSVhsv(271, 64%, 97%)
CMYKcmyk(30.8%, 63.6%, 0%, 3.1%)
CIE-LABlab(54.75, 60.91, -65.99)
CIE-LCHlch(54.75, 89.81, 312.71°)
OKLaboklab(63.64% 0.1282 -0.1871)
OKLCHoklch(63.64% 0.227 304.4)
XYZxyz(37.2355, 22.6858, 90.3948)
Luminance0.2269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AF7 #A6F75A
analogous
#5C5AF7 #AB5AF7 #F75AF5
triadic
#AB5AF7 #F7AB5A #5AF7AB
tetradic
#AB5AF7 #F75C5A #A6F75A #5AF5F7
square
#AB5AF7 #F75C5A #A6F75A #5AF5F7
split-complementary
#AB5AF7 #F5F75A #5AF75C
monochromatic
#6E0ACD #8D20F4 #AB5AF7 #C994FA #E6CFFD

Accessibility & contrast

On white

3.79
#AB5AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#AB5AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AF7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AF7#FFFFFF#000000##000000
##AB5AF71.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FC
Deuteranopia (green-blind)
#2C83F4
Tritanopia (blue-blind)
#9D7CA1
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5af7;
/* rgb */ color: rgb(171, 90, 247);
/* oklch */ color: oklch(63.6% 0.227 304.4);
Tailwind
colors: {
  custom: {
    50: '#c98dfb',
    500: '#ab5af7',
    950: '#000000',
  },
}
SCSS
$custom: #ab5af7;
$custom-light: #c98dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5af7",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 270.955,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63636,
    "c": 0.2268,
    "h": 304.4
  },
  "luminance": 0.22686
}

Semantic roles & 50–950 ramp

primary
#AB5AF7
secondary
#D6F0BD
accent
#E6006F
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AB5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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