#AB5AF2#AB5AF2

#AB5AF2 is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.3% C 0.222 H 305.5°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AB5AF2
RGBrgb(171, 90, 242)
HSLhsl(272, 85%, 65%)
HSVhsv(272, 63%, 95%)
CMYKcmyk(29.3%, 62.8%, 0%, 5.1%)
CIE-LABlab(54.43, 59.77, -63.72)
CIE-LCHlch(54.43, 87.37, 313.17°)
OKLaboklab(63.31% 0.1285 -0.1804)
OKLCHoklch(63.31% 0.222 305.5)
XYZxyz(36.4743, 22.3813, 86.3857)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AF2 #A1F25A
analogous
#5F5AF2 #AB5AF2 #F25AED
triadic
#AB5AF2 #F2AB5A #5AF2AB
tetradic
#AB5AF2 #F25F5A #A1F25A #5AEDF2
square
#AB5AF2 #F25F5A #A1F25A #5AEDF2
split-complementary
#AB5AF2 #EDF25A #5AF25F
monochromatic
#6F0FC2 #8E21EE #AB5AF2 #C893F6 #E5CBFB

Accessibility & contrast

On white

3.83
#AB5AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#AB5AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AF2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AF2#FFFFFF#000000##000000
##AB5AF21.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F7
Deuteranopia (green-blind)
#3582EF
Tritanopia (blue-blind)
#9F7A9E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ab5af2;
/* rgb */ color: rgb(171, 90, 242);
/* oklch */ color: oklch(63.3% 0.222 305.5);
Tailwind
colors: {
  custom: {
    50: '#c88df7',
    500: '#ab5af2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5af2;
$custom-light: #c88df7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5af2",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 242
  },
  "hsl": {
    "h": 271.974,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63305,
    "c": 0.22152,
    "h": 305.5
  },
  "luminance": 0.22381
}

Semantic roles & 50–950 ramp

primary
#AB5AF2
secondary
#D2EEBA
accent
#E2046B
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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