#AB5AF5#AB5AF5

#AB5AF5 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.5% C 0.225 H 304.8°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AB5AF5
RGBrgb(171, 90, 245)
HSLhsl(271, 89%, 66%)
HSVhsv(271, 63%, 96%)
CMYKcmyk(30.2%, 63.3%, 0%, 3.9%)
CIE-LABlab(54.62, 60.45, -65.09)
CIE-LCHlch(54.62, 88.83, 312.89°)
OKLaboklab(63.5% 0.1283 -0.1845)
OKLCHoklch(63.5% 0.225 304.8)
XYZxyz(36.9285, 22.5630, 88.7781)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AF5 #A4F55A
analogous
#5D5AF5 #AB5AF5 #F55AF1
triadic
#AB5AF5 #F5AB5A #5AF5AB
tetradic
#AB5AF5 #F55D5A #A4F55A #5AF1F5
square
#AB5AF5 #F55D5A #A4F55A #5AF1F5
split-complementary
#AB5AF5 #F1F55A #5AF55D
monochromatic
#6F0CC8 #8E20F2 #AB5AF5 #C894F8 #E6CDFC

Accessibility & contrast

On white

3.81
#AB5AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AB5AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AF5
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AF5#FFFFFF#000000##000000
##AB5AF51.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FA
Deuteranopia (green-blind)
#3083F2
Tritanopia (blue-blind)
#9E7BA0
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5af5;
/* rgb */ color: rgb(171, 90, 245);
/* oklch */ color: oklch(63.5% 0.225 304.8);
Tailwind
colors: {
  custom: {
    50: '#c98df9',
    500: '#ab5af5',
    950: '#000000',
  },
}
SCSS
$custom: #ab5af5;
$custom-light: #c98df9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5af5",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 245
  },
  "hsl": {
    "h": 271.355,
    "s": 88.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.63503,
    "c": 0.2247,
    "h": 304.8
  },
  "luminance": 0.22563
}

Semantic roles & 50–950 ramp

primary
#AB5AF5
secondary
#D4EFBC
accent
#E5006E
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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