#AB6DFE#AB6DFE

#AB6DFE is a light, highly saturated violet. Relative luminance 0.268; OKLCH L 66.7% C 0.209 H 300.6°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AB6DFE
RGBrgb(171, 109, 254)
HSLhsl(266, 99%, 71%)
HSVhsv(266, 57%, 100%)
CMYKcmyk(32.7%, 57.1%, 0%, 0.4%)
CIE-LABlab(58.74, 52.99, -63.44)
CIE-LCHlch(58.74, 82.66, 309.87°)
OKLaboklab(66.68% 0.1061 -0.1797)
OKLCHoklch(66.68% 0.209 300.6)
XYZxyz(40.1484, 26.7507, 96.7950)
Luminance0.2675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6DFE #C0FE6D
analogous
#6D77FE #AB6DFE #F36DFE
triadic
#AB6DFE #FEAB6D #6DFEAB
tetradic
#AB6DFE #FE6D77 #C0FE6D #6DFEF3
square
#AB6DFE #FE6D77 #C0FE6D #6DFEF3
split-complementary
#AB6DFE #FEF36D #77FE6D
monochromatic
#6702EF #8830FE #AB6DFE #CEAAFE #EEE1FF

Accessibility & contrast

On white

3.31
#AB6DFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#AB6DFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6DFE
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6DFE#FFFFFF#000000##000000
##AB6DFE1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#278DFF
Deuteranopia (green-blind)
#428CFB
Tritanopia (blue-blind)
#9A8BAB
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ab6dfe;
/* rgb */ color: rgb(171, 109, 254);
/* oklch */ color: oklch(66.7% 0.209 300.6);
Tailwind
colors: {
  custom: {
    50: '#c899ff',
    500: '#ab6dfe',
    950: '#000000',
  },
}
SCSS
$custom: #ab6dfe;
$custom-light: #c899ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6dfe",
  "rgb": {
    "r": 171,
    "g": 109,
    "b": 254
  },
  "hsl": {
    "h": 265.655,
    "s": 98.639,
    "l": 71.176
  },
  "oklch": {
    "l": 0.6668,
    "c": 0.20867,
    "h": 300.6
  },
  "luminance": 0.26751
}

Semantic roles & 50–950 ramp

primary
#AB6DFE
secondary
#E6F6D0
accent
#E60083
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AB6DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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