#AB6AFD#AB6AFD

#AB6AFD is a light, highly saturated violet. Relative luminance 0.261; OKLCH L 66.2% C 0.212 H 301.2°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AB6AFD
RGBrgb(171, 106, 253)
HSLhsl(267, 97%, 70%)
HSVhsv(267, 58%, 99%)
CMYKcmyk(32.4%, 58.1%, 0%, 0.8%)
CIE-LABlab(58.09, 54.31, -63.93)
CIE-LCHlch(58.09, 83.89, 310.35°)
OKLaboklab(66.18% 0.1097 -0.1811)
OKLCHoklch(66.18% 0.212 301.2)
XYZxyz(39.6741, 26.0577, 95.8489)
Luminance0.2606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6AFD #BCFD6A
analogous
#6A72FD #AB6AFD #F56AFD
triadic
#AB6AFD #FDAB6A #6AFDAB
tetradic
#AB6AFD #FD6A72 #BCFD6A #6AFDF5
square
#AB6AFD #FD6A72 #BCFD6A #6AFDF5
split-complementary
#AB6AFD #FDF56A #72FD6A
monochromatic
#6903E9 #892EFC #AB6AFD #CDA6FE #EEE1FF

Accessibility & contrast

On white

3.38
#AB6AFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#AB6AFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6AFD
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6AFD#FFFFFF#000000##000000
##AB6AFD1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D8BFF
Deuteranopia (green-blind)
#3F8BFA
Tritanopia (blue-blind)
#9A88AA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ab6afd;
/* rgb */ color: rgb(171, 106, 253);
/* oklch */ color: oklch(66.2% 0.212 301.2);
Tailwind
colors: {
  custom: {
    50: '#c897ff',
    500: '#ab6afd',
    950: '#000000',
  },
}
SCSS
$custom: #ab6afd;
$custom-light: #c897ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6afd",
  "rgb": {
    "r": 171,
    "g": 106,
    "b": 253
  },
  "hsl": {
    "h": 266.531,
    "s": 97.351,
    "l": 70.392
  },
  "oklch": {
    "l": 0.66184,
    "c": 0.21174,
    "h": 301.2
  },
  "luminance": 0.26058
}

Semantic roles & 50–950 ramp

primary
#AB6AFD
secondary
#E4F6CD
accent
#E60080
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AB6AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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