#AB6DF2#AB6DF2

#AB6DF2 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.9% C 0.195 H 302.9°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#AB6DF2
RGBrgb(171, 109, 242)
HSLhsl(268, 84%, 69%)
HSVhsv(268, 55%, 95%)
CMYKcmyk(29.3%, 55%, 0%, 5.1%)
CIE-LABlab(58.04, 50.12, -57.92)
CIE-LCHlch(58.04, 76.59, 310.87°)
OKLaboklab(65.94% 0.106 -0.1635)
OKLCHoklch(65.94% 0.195 302.9)
XYZxyz(38.2866, 26.0060, 86.9898)
Luminance0.2601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6DF2 #B4F26D
analogous
#6D72F2 #AB6DF2 #EE6DF2
triadic
#AB6DF2 #F2AB6D #6DF2AB
tetradic
#AB6DF2 #F26D72 #B4F26D #6DF2EE
square
#AB6DF2 #F26D72 #B4F26D #6DF2EE
split-complementary
#AB6DF2 #F2EE6D #72F26D
monochromatic
#6C13D2 #8B35ED #AB6DF2 #CBA5F7 #ECDDFC

Accessibility & contrast

On white

3.39
#AB6DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#AB6DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6DF2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6DF2#FFFFFF#000000##000000
##AB6DF21.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#398AF6
Deuteranopia (green-blind)
#4F8BEF
Tritanopia (blue-blind)
#9E87A5
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ab6df2;
/* rgb */ color: rgb(171, 109, 242);
/* oklch */ color: oklch(65.9% 0.195 302.9);
Tailwind
colors: {
  custom: {
    50: '#c899f7',
    500: '#ab6df2',
    950: '#000000',
  },
}
SCSS
$custom: #ab6df2;
$custom-light: #c899f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6df2",
  "rgb": {
    "r": 171,
    "g": 109,
    "b": 242
  },
  "hsl": {
    "h": 267.97,
    "s": 83.648,
    "l": 68.824
  },
  "oklch": {
    "l": 0.65941,
    "c": 0.19482,
    "h": 302.9
  },
  "luminance": 0.26006
}

Semantic roles & 50–950 ramp

primary
#AB6DF2
secondary
#DFF1CA
accent
#E0057A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB6DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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