#AB5AEF#AB5AEF

#AB5AEF is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.1% C 0.218 H 306.1°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AB5AEF
RGBrgb(171, 90, 239)
HSLhsl(273, 82%, 65%)
HSVhsv(273, 62%, 94%)
CMYKcmyk(28.5%, 62.3%, 0%, 6.3%)
CIE-LABlab(54.24, 59.09, -62.35)
CIE-LCHlch(54.24, 85.90, 313.46°)
OKLaboklab(63.11% 0.1287 -0.1764)
OKLCHoklch(63.11% 0.218 306.1)
XYZxyz(36.0274, 22.2026, 84.0322)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AEF #9EEF5A
analogous
#615AEF #AB5AEF #EF5AE9
triadic
#AB5AEF #EFAB5A #5AEFAB
tetradic
#AB5AEF #EF615A #9EEF5A #5AE9EF
square
#AB5AEF #EF615A #9EEF5A #5AE9EF
split-complementary
#AB5AEF #E9EF5A #5AEF61
monochromatic
#6F12BC #8F22EA #AB5AEF #C792F4 #E4CAFA

Accessibility & contrast

On white

3.86
#AB5AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#AB5AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AEF
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AEF#FFFFFF#000000##000000
##AB5AEF1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF4
Deuteranopia (green-blind)
#3982EC
Tritanopia (blue-blind)
#A0799D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ab5aef;
/* rgb */ color: rgb(171, 90, 239);
/* oklch */ color: oklch(63.1% 0.218 306.1);
Tailwind
colors: {
  custom: {
    50: '#c88df5',
    500: '#ab5aef',
    950: '#000000',
  },
}
SCSS
$custom: #ab5aef;
$custom-light: #c88df5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5aef",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 272.617,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63109,
    "c": 0.21835,
    "h": 306.1
  },
  "luminance": 0.22202
}

Semantic roles & 50–950 ramp

primary
#AB5AEF
secondary
#D0ECB9
accent
#DF0769
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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