#AB6AF2#AB6AF2

#AB6AF2 is a light, vivid violet. Relative luminance 0.254; OKLCH L 65.5% C 0.199 H 303.4°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AB6AF2
RGBrgb(171, 106, 242)
HSLhsl(269, 84%, 68%)
HSVhsv(269, 56%, 95%)
CMYKcmyk(29.3%, 56.2%, 0%, 5.1%)
CIE-LABlab(57.44, 51.70, -58.88)
CIE-LCHlch(57.44, 78.36, 311.28°)
OKLaboklab(65.5% 0.1097 -0.1663)
OKLCHoklch(65.5% 0.199 303.4)
XYZxyz(37.9720, 25.3769, 86.8849)
Luminance0.2538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6AF2 #B1F26A
analogous
#6A6DF2 #AB6AF2 #EF6AF2
triadic
#AB6AF2 #F2AB6A #6AF2AB
tetradic
#AB6AF2 #F26A6D #B1F26A #6AF2EF
square
#AB6AF2 #F26A6D #B1F26A #6AF2EF
split-complementary
#AB6AF2 #F2EF6A #6DF26A
monochromatic
#6D12CF #8B32ED #AB6AF2 #CBA2F7 #EADBFC

Accessibility & contrast

On white

3.46
#AB6AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#AB6AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6AF2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6AF2#FFFFFF#000000##000000
##AB6AF21.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3288F6
Deuteranopia (green-blind)
#4B8AEF
Tritanopia (blue-blind)
#9E85A4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ab6af2;
/* rgb */ color: rgb(171, 106, 242);
/* oklch */ color: oklch(65.5% 0.199 303.4);
Tailwind
colors: {
  custom: {
    50: '#c897f7',
    500: '#ab6af2',
    950: '#000000',
  },
}
SCSS
$custom: #ab6af2;
$custom-light: #c897f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6af2",
  "rgb": {
    "r": 171,
    "g": 106,
    "b": 242
  },
  "hsl": {
    "h": 268.676,
    "s": 83.951,
    "l": 68.235
  },
  "oklch": {
    "l": 0.65499,
    "c": 0.1992,
    "h": 303.4
  },
  "luminance": 0.25377
}

Semantic roles & 50–950 ramp

primary
#AB6AF2
secondary
#DDF1C7
accent
#E00578
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB6AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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