#AB5DF7#AB5DF7

#AB5DF7 is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 64.0% C 0.223 H 304.1°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AB5DF7
RGBrgb(171, 93, 247)
HSLhsl(270, 91%, 67%)
HSVhsv(270, 62%, 97%)
CMYKcmyk(30.8%, 62.3%, 0%, 3.1%)
CIE-LABlab(55.28, 59.46, -65.13)
CIE-LCHlch(55.28, 88.19, 312.39°)
OKLaboklab(64.02% 0.1248 -0.1846)
OKLCHoklch(64.02% 0.223 304.1)
XYZxyz(37.4937, 23.2021, 90.4809)
Luminance0.2320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DF7 #A9F75D
analogous
#5E5DF7 #AB5DF7 #F75DF6
triadic
#AB5DF7 #F7AB5D #5DF7AB
tetradic
#AB5DF7 #F75E5D #A9F75D #5DF6F7
square
#AB5DF7 #F75E5D #A9F75D #5DF6F7
split-complementary
#AB5DF7 #F6F75D #5DF75E
monochromatic
#6E0ACF #8D23F4 #AB5DF7 #C997FA #E7D2FD

Accessibility & contrast

On white

3.72
#AB5DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#AB5DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DF7
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DF7#FFFFFF#000000##000000
##AB5DF71.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FC
Deuteranopia (green-blind)
#3284F4
Tritanopia (blue-blind)
#9D7EA2
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ab5df7;
/* rgb */ color: rgb(171, 93, 247);
/* oklch */ color: oklch(64.0% 0.223 304.1);
Tailwind
colors: {
  custom: {
    50: '#c98ffb',
    500: '#ab5df7',
    950: '#000000',
  },
}
SCSS
$custom: #ab5df7;
$custom-light: #c98ffb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5df7",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 247
  },
  "hsl": {
    "h": 270.39,
    "s": 90.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.64021,
    "c": 0.22285,
    "h": 304.1
  },
  "luminance": 0.23202
}

Semantic roles & 50–950 ramp

primary
#AB5DF7
secondary
#D8F1BF
accent
#E60071
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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