#AB6DF7#AB6DF7

#AB6DF7 is a light, highly saturated violet. Relative luminance 0.263; OKLCH L 66.2% C 0.201 H 301.9°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AB6DF7
RGBrgb(171, 109, 247)
HSLhsl(267, 90%, 70%)
HSVhsv(267, 56%, 97%)
CMYKcmyk(30.8%, 55.9%, 0%, 3.1%)
CIE-LABlab(58.33, 51.31, -60.23)
CIE-LCHlch(58.33, 79.12, 310.42°)
OKLaboklab(66.25% 0.1061 -0.1703)
OKLCHoklch(66.25% 0.201 301.9)
XYZxyz(39.0478, 26.3105, 90.9989)
Luminance0.2631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6DF7 #B9F76D
analogous
#6D74F7 #AB6DF7 #F06DF7
triadic
#AB6DF7 #F7AB6D #6DF7AB
tetradic
#AB6DF7 #F76D74 #B9F76D #6DF7F0
square
#AB6DF7 #F76D74 #B9F76D #6DF7F0
split-complementary
#AB6DF7 #F7F06D #74F76D
monochromatic
#6A0CDD #8A33F4 #AB6DF7 #CCA7FA #EEE1FD

Accessibility & contrast

On white

3.35
#AB6DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#AB6DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6DF7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6DF7#FFFFFF#000000##000000
##AB6DF71.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#328BFC
Deuteranopia (green-blind)
#4A8CF4
Tritanopia (blue-blind)
#9C88A8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ab6df7;
/* rgb */ color: rgb(171, 109, 247);
/* oklch */ color: oklch(66.2% 0.201 301.9);
Tailwind
colors: {
  custom: {
    50: '#c899fa',
    500: '#ab6df7',
    950: '#000000',
  },
}
SCSS
$custom: #ab6df7;
$custom-light: #c899fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6df7",
  "rgb": {
    "r": 171,
    "g": 109,
    "b": 247
  },
  "hsl": {
    "h": 266.957,
    "s": 89.61,
    "l": 69.804
  },
  "oklch": {
    "l": 0.66245,
    "c": 0.2006,
    "h": 301.9
  },
  "luminance": 0.26311
}

Semantic roles & 50–950 ramp

primary
#AB6DF7
secondary
#E2F3CC
accent
#E6007E
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB6DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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