#AB7FF1#AB7FF1

#AB7FF1 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.7% C 0.166 H 299.9°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#AB7FF1
RGBrgb(171, 127, 241)
HSLhsl(263, 80%, 72%)
HSVhsv(263, 47%, 95%)
CMYKcmyk(29%, 47.3%, 0%, 5.5%)
CIE-LABlab(61.82, 40.08, -51.36)
CIE-LCHlch(61.82, 65.15, 307.97°)
OKLaboklab(68.72% 0.0828 -0.1443)
OKLCHoklch(68.72% 0.166 299.9)
XYZxyz(40.2574, 30.1873, 86.9079)
Luminance0.3019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7FF1 #C5F17F
analogous
#7F8CF1 #AB7FF1 #E47FF1
triadic
#AB7FF1 #F1AB7F #7FF1AB
tetradic
#AB7FF1 #F17F8C #C5F17F #7FF1E4
square
#AB7FF1 #F17F8C #C5F17F #7FF1E4
split-complementary
#AB7FF1 #F1E47F #8CF17F
monochromatic
#6418DD #8748EB #AB7FF1 #CFB6F7 #EDE3FC

Accessibility & contrast

On white

2.98
#AB7FF1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#AB7FF1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7FF1
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7FF1#FFFFFF#000000##000000
##AB7FF11.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B95F5
Deuteranopia (green-blind)
#6695EE
Tritanopia (blue-blind)
#9D94AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7ff1;
/* rgb */ color: rgb(171, 127, 241);
/* oklch */ color: oklch(68.7% 0.166 299.9);
Tailwind
colors: {
  custom: {
    50: '#c7a5f6',
    500: '#ab7ff1',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ff1;
$custom-light: #c7a5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ff1",
  "rgb": {
    "r": 171,
    "g": 127,
    "b": 241
  },
  "hsl": {
    "h": 263.158,
    "s": 80.282,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68722,
    "c": 0.16639,
    "h": 299.9
  },
  "luminance": 0.30188
}

Semantic roles & 50–950 ramp

primary
#AB7FF1
secondary
#E9F4D7
accent
#DD098B
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7FF1

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

Preview Lab → · Contrast checker → · Palette generator →

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