#AB6AFB#AB6AFB

#AB6AFB is a light, highly saturated violet. Relative luminance 0.259; OKLCH L 66.1% C 0.209 H 301.6°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#AB6AFB
RGBrgb(171, 106, 251)
HSLhsl(267, 95%, 70%)
HSVhsv(267, 58%, 98%)
CMYKcmyk(31.9%, 57.8%, 0%, 1.6%)
CIE-LABlab(57.97, 53.83, -63.02)
CIE-LCHlch(57.97, 82.88, 310.50°)
OKLaboklab(66.06% 0.1097 -0.1784)
OKLCHoklch(66.06% 0.209 301.6)
XYZxyz(39.3571, 25.9309, 94.1798)
Luminance0.2593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6AFB #BAFB6A
analogous
#6A71FB #AB6AFB #F46AFB
triadic
#AB6AFB #FBAB6A #6AFBAB
tetradic
#AB6AFB #FB6A71 #BAFB6A #6AFBF4
square
#AB6AFB #FB6A71 #BAFB6A #6AFBF4
split-complementary
#AB6AFB #FBF46A #71FB6A
monochromatic
#6A06E4 #892EF9 #AB6AFB #CDA6FD #EEE1FE

Accessibility & contrast

On white

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

On black

6.19
#AB6AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6AFB
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6AFB#FFFFFF#000000##000000
##AB6AFB1.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#228AFF
Deuteranopia (green-blind)
#428BF8
Tritanopia (blue-blind)
#9B88A9
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ab6afb;
/* rgb */ color: rgb(171, 106, 251);
/* oklch */ color: oklch(66.1% 0.209 301.6);
Tailwind
colors: {
  custom: {
    50: '#c897fd',
    500: '#ab6afb',
    950: '#000000',
  },
}
SCSS
$custom: #ab6afb;
$custom-light: #c897fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6afb",
  "rgb": {
    "r": 171,
    "g": 106,
    "b": 251
  },
  "hsl": {
    "h": 266.897,
    "s": 94.771,
    "l": 70
  },
  "oklch": {
    "l": 0.66058,
    "c": 0.20946,
    "h": 301.6
  },
  "luminance": 0.25931
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB6AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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