#AB5AF8#AB5AF8

#AB5AF8 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.7% C 0.228 H 304.2°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AB5AF8
RGBrgb(171, 90, 248)
HSLhsl(271, 92%, 66%)
HSVhsv(271, 64%, 97%)
CMYKcmyk(31%, 63.7%, 0%, 2.7%)
CIE-LABlab(54.81, 61.14, -66.45)
CIE-LCHlch(54.81, 90.29, 312.62°)
OKLaboklab(63.7% 0.1281 -0.1884)
OKLCHoklch(63.7% 0.228 304.2)
XYZxyz(37.3902, 22.7477, 91.2097)
Luminance0.2275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AF8 #A7F85A
analogous
#5C5AF8 #AB5AF8 #F85AF6
triadic
#AB5AF8 #F8AB5A #5AF8AB
tetradic
#AB5AF8 #F85C5A #A7F85A #5AF6F8
square
#AB5AF8 #F85C5A #A7F85A #5AF6F8
split-complementary
#AB5AF8 #F6F85A #5AF85C
monochromatic
#6E09CF #8D1FF6 #AB5AF8 #C995FA #E7CFFD

Accessibility & contrast

On white

3.78
#AB5AF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#AB5AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AF8
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AF8#FFFFFF#000000##000000
##AB5AF81.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab5af8;
/* rgb */ color: rgb(171, 90, 248);
/* oklch */ color: oklch(63.7% 0.228 304.2);
Tailwind
colors: {
  custom: {
    50: '#c98dfb',
    500: '#ab5af8',
    950: '#000000',
  },
}
SCSS
$custom: #ab5af8;
$custom-light: #c98dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5af8",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 248
  },
  "hsl": {
    "h": 270.759,
    "s": 91.86,
    "l": 66.275
  },
  "oklch": {
    "l": 0.63703,
    "c": 0.22786,
    "h": 304.2
  },
  "luminance": 0.22748
}

Semantic roles & 50–950 ramp

primary
#AB5AF8
secondary
#D6F1BD
accent
#E60070
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D18
muted
#827D86

Preview Lab

Preview with #AB5AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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