#AB5DF1#AB5DF1

#AB5DF1 is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.6% C 0.216 H 305.3°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AB5DF1
RGBrgb(171, 93, 241)
HSLhsl(272, 84%, 65%)
HSVhsv(272, 61%, 95%)
CMYKcmyk(29%, 61.4%, 0%, 5.5%)
CIE-LABlab(54.90, 58.08, -62.40)
CIE-LCHlch(54.90, 85.25, 312.95°)
OKLaboklab(63.63% 0.1251 -0.1766)
OKLCHoklch(63.63% 0.216 305.3)
XYZxyz(36.5827, 22.8377, 85.6829)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DF1 #A3F15D
analogous
#615DF1 #AB5DF1 #F15DED
triadic
#AB5DF1 #F1AB5D #5DF1AB
tetradic
#AB5DF1 #F1615D #A3F15D #5DEDF1
square
#AB5DF1 #F1615D #A3F15D #5DEDF1
split-complementary
#AB5DF1 #EDF15D #5DF161
monochromatic
#6F11C3 #8E25EC #AB5DF1 #C895F6 #E5CEFB

Accessibility & contrast

On white

3.77
#AB5DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#AB5DF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DF1
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DF1#FFFFFF#000000##000000
##AB5DF11.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F6
Deuteranopia (green-blind)
#3B84EE
Tritanopia (blue-blind)
#9F7B9F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5df1;
/* rgb */ color: rgb(171, 93, 241);
/* oklch */ color: oklch(63.6% 0.216 305.3);
Tailwind
colors: {
  custom: {
    50: '#c88ff6',
    500: '#ab5df1',
    950: '#000000',
  },
}
SCSS
$custom: #ab5df1;
$custom-light: #c88ff6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5df1",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 241
  },
  "hsl": {
    "h": 271.622,
    "s": 84.091,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6363,
    "c": 0.21642,
    "h": 305.3
  },
  "luminance": 0.22838
}

Semantic roles & 50–950 ramp

primary
#AB5DF1
secondary
#D4EEBC
accent
#E1056D
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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