#AB7FF2#AB7FF2

#AB7FF2 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.8% C 0.168 H 299.7°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AB7FF2
RGBrgb(171, 127, 242)
HSLhsl(263, 82%, 72%)
HSVhsv(263, 48%, 95%)
CMYKcmyk(29.3%, 47.5%, 0%, 5.1%)
CIE-LABlab(61.87, 40.33, -51.83)
CIE-LCHlch(61.87, 65.67, 307.89°)
OKLaboklab(68.78% 0.0829 -0.1457)
OKLCHoklch(68.78% 0.168 299.7)
XYZxyz(40.4072, 30.2472, 87.6967)
Luminance0.3025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7FF2 #C6F27F
analogous
#7F8CF2 #AB7FF2 #E57FF2
triadic
#AB7FF2 #F2AB7F #7FF2AB
tetradic
#AB7FF2 #F27F8C #C6F27F #7FF2E5
square
#AB7FF2 #F27F8C #C6F27F #7FF2E5
split-complementary
#AB7FF2 #F2E57F #8CF27F
monochromatic
#6417E0 #8747EC #AB7FF2 #CFB7F8 #EDE3FC

Accessibility & contrast

On white

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

On black

7.05
#AB7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7FF2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7FF2#FFFFFF#000000##000000
##AB7FF21.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B95F6
Deuteranopia (green-blind)
#6595EF
Tritanopia (blue-blind)
#9D94AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7ff2;
/* rgb */ color: rgb(171, 127, 242);
/* oklch */ color: oklch(68.8% 0.168 299.7);
Tailwind
colors: {
  custom: {
    50: '#c7a5f7',
    500: '#ab7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ff2;
$custom-light: #c7a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ff2",
  "rgb": {
    "r": 171,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 262.957,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68778,
    "c": 0.16764,
    "h": 299.7
  },
  "luminance": 0.30247
}

Semantic roles & 50–950 ramp

primary
#AB7FF2
secondary
#E9F4D7
accent
#DE088C
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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