#AB6AFC#AB6AFC

#AB6AFC is a light, highly saturated violet. Relative luminance 0.260; OKLCH L 66.1% C 0.211 H 301.4°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#AB6AFC
RGBrgb(171, 106, 252)
HSLhsl(267, 96%, 70%)
HSVhsv(267, 58%, 99%)
CMYKcmyk(32.1%, 57.9%, 0%, 1.2%)
CIE-LABlab(58.03, 54.07, -63.48)
CIE-LCHlch(58.03, 83.39, 310.43°)
OKLaboklab(66.12% 0.1097 -0.1798)
OKLCHoklch(66.12% 0.211 301.4)
XYZxyz(39.5152, 25.9941, 95.0122)
Luminance0.2599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6AFC #BBFC6A
analogous
#6A72FC #AB6AFC #F46AFC
triadic
#AB6AFC #FCAB6A #6AFCAB
tetradic
#AB6AFC #FC6A72 #BBFC6A #6AFCF4
square
#AB6AFC #FC6A72 #BBFC6A #6AFCF4
split-complementary
#AB6AFC #FCF46A #72FC6A
monochromatic
#6905E7 #892EFB #AB6AFC #CDA6FD #EEE1FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB6AFC#FFFFFF#000000##000000
##AB6AFC1.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)
#208BFF
Deuteranopia (green-blind)
#408BF9
Tritanopia (blue-blind)
#9B88A9
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ab6afc;
/* rgb */ color: rgb(171, 106, 252);
/* oklch */ color: oklch(66.1% 0.211 301.4);
Tailwind
colors: {
  custom: {
    50: '#c897fe',
    500: '#ab6afc',
    950: '#000000',
  },
}
SCSS
$custom: #ab6afc;
$custom-light: #c897fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6afc",
  "rgb": {
    "r": 171,
    "g": 106,
    "b": 252
  },
  "hsl": {
    "h": 266.712,
    "s": 96.053,
    "l": 70.196
  },
  "oklch": {
    "l": 0.66121,
    "c": 0.2106,
    "h": 301.4
  },
  "luminance": 0.25994
}

Semantic roles & 50–950 ramp

primary
#AB6AFC
secondary
#E3F5CD
accent
#E6007F
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AB6AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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