#AB6AFA#AB6AFA

#AB6AFA is a light, highly saturated violet. Relative luminance 0.259; OKLCH L 66.0% C 0.208 H 301.8°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AB6AFA
RGBrgb(171, 106, 250)
HSLhsl(267, 94%, 70%)
HSVhsv(267, 58%, 98%)
CMYKcmyk(31.6%, 57.6%, 0%, 2%)
CIE-LABlab(57.91, 53.59, -62.57)
CIE-LCHlch(57.91, 82.38, 310.58°)
OKLaboklab(66% 0.1097 -0.1771)
OKLCHoklch(66% 0.208 301.8)
XYZxyz(39.1999, 25.8680, 93.3518)
Luminance0.2587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6AFA #B9FA6A
analogous
#6A71FA #AB6AFA #F36AFA
triadic
#AB6AFA #FAAB6A #6AFAAB
tetradic
#AB6AFA #FA6A71 #B9FA6A #6AFAF3
square
#AB6AFA #FA6A71 #B9FA6A #6AFAF3
split-complementary
#AB6AFA #FAF36A #71FA6A
monochromatic
#6A08E2 #8A2FF8 #AB6AFA #CCA5FC #EEE0FE

Accessibility & contrast

On white

3.40
#AB6AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#AB6AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6AFA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6AFA#FFFFFF#000000##000000
##AB6AFA1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#248AFF
Deuteranopia (green-blind)
#438BF7
Tritanopia (blue-blind)
#9B87A8
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ab6afa;
/* rgb */ color: rgb(171, 106, 250);
/* oklch */ color: oklch(66.0% 0.208 301.8);
Tailwind
colors: {
  custom: {
    50: '#c897fd',
    500: '#ab6afa',
    950: '#000000',
  },
}
SCSS
$custom: #ab6afa;
$custom-light: #c897fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6afa",
  "rgb": {
    "r": 171,
    "g": 106,
    "b": 250
  },
  "hsl": {
    "h": 267.083,
    "s": 93.506,
    "l": 69.804
  },
  "oklch": {
    "l": 0.65995,
    "c": 0.20832,
    "h": 301.8
  },
  "luminance": 0.25868
}

Semantic roles & 50–950 ramp

primary
#AB6AFA
secondary
#E2F4CC
accent
#E6007E
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AB6AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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