#AB6FE2#AB6FE2

#AB6FE2 is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.3% C 0.173 H 306.3°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#AB6FE2
RGBrgb(171, 111, 226)
HSLhsl(271, 66%, 66%)
HSVhsv(271, 51%, 89%)
CMYKcmyk(24.3%, 50.9%, 0%, 11.4%)
CIE-LABlab(57.58, 45.30, -49.74)
CIE-LCHlch(57.58, 67.28, 312.33°)
OKLaboklab(65.31% 0.1025 -0.1395)
OKLCHoklch(65.31% 0.173 306.3)
XYZxyz(36.2037, 25.5181, 74.9550)
Luminance0.2552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6FE2 #A6E26F
analogous
#716FE2 #AB6FE2 #E26FE0
triadic
#AB6FE2 #E2AB6F #6FE2AB
tetradic
#AB6FE2 #E2716F #A6E26F #6FE0E2
square
#AB6FE2 #E2716F #A6E26F #6FE0E2
split-complementary
#AB6FE2 #E0E26F #6FE271
monochromatic
#6E24B3 #8D3CD8 #AB6FE2 #C9A2EC #E6D5F7

Accessibility & contrast

On white

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

On black

6.10
#AB6FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6FE2
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6FE2#FFFFFF#000000##000000
##AB6FE21.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D88E6
Deuteranopia (green-blind)
#5E8BDF
Tritanopia (blue-blind)
#A2839E
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ab6fe2;
/* rgb */ color: rgb(171, 111, 226);
/* oklch */ color: oklch(65.3% 0.173 306.3);
Tailwind
colors: {
  custom: {
    50: '#c79aeb',
    500: '#ab6fe2',
    950: '#000000',
  },
}
SCSS
$custom: #ab6fe2;
$custom-light: #c79aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6fe2",
  "rgb": {
    "r": 171,
    "g": 111,
    "b": 226
  },
  "hsl": {
    "h": 271.304,
    "s": 66.474,
    "l": 66.078
  },
  "oklch": {
    "l": 0.65313,
    "c": 0.17312,
    "h": 306.3
  },
  "luminance": 0.25518
}

Semantic roles & 50–950 ramp

primary
#AB6FE2
secondary
#D6E9C4
accent
#CE176F
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AB6FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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