#AB6AF5#AB6AF5

#AB6AF5 is a light, highly saturated violet. Relative luminance 0.256; OKLCH L 65.7% C 0.203 H 302.8°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AB6AF5
RGBrgb(171, 106, 245)
HSLhsl(268, 87%, 69%)
HSVhsv(268, 57%, 96%)
CMYKcmyk(30.2%, 56.7%, 0%, 3.9%)
CIE-LABlab(57.62, 52.41, -60.27)
CIE-LCHlch(57.62, 79.87, 311.01°)
OKLaboklab(65.68% 0.1097 -0.1704)
OKLCHoklch(65.68% 0.203 302.8)
XYZxyz(38.4263, 25.5586, 89.2774)
Luminance0.2556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6AF5 #B4F56A
analogous
#6A6FF5 #AB6AF5 #F16AF5
triadic
#AB6AF5 #F5AB6A #6AF5AB
tetradic
#AB6AF5 #F56A6F #B4F56A #6AF5F1
square
#AB6AF5 #F56A6F #B4F56A #6AF5F1
split-complementary
#AB6AF5 #F5F16A #6FF56A
monochromatic
#6C0ED6 #8B31F1 #AB6AF5 #CBA3F9 #ECDDFD

Accessibility & contrast

On white

3.44
#AB6AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#AB6AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6AF5
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6AF5#FFFFFF#000000##000000
##AB6AF51.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D89FA
Deuteranopia (green-blind)
#488AF2
Tritanopia (blue-blind)
#9D86A6
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ab6af5;
/* rgb */ color: rgb(171, 106, 245);
/* oklch */ color: oklch(65.7% 0.203 302.8);
Tailwind
colors: {
  custom: {
    50: '#c897f9',
    500: '#ab6af5',
    950: '#000000',
  },
}
SCSS
$custom: #ab6af5;
$custom-light: #c897f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6af5",
  "rgb": {
    "r": 171,
    "g": 106,
    "b": 245
  },
  "hsl": {
    "h": 268.058,
    "s": 87.421,
    "l": 68.824
  },
  "oklch": {
    "l": 0.65683,
    "c": 0.20262,
    "h": 302.8
  },
  "luminance": 0.25559
}

Semantic roles & 50–950 ramp

primary
#AB6AF5
secondary
#DFF2C9
accent
#E4027A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB6AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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