#AB7EF7#AB7EF7

#AB7EF7 is a light, vivid violet. Relative luminance 0.303; OKLCH L 68.9% C 0.175 H 298.9°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#AB7EF7
RGBrgb(171, 126, 247)
HSLhsl(262, 88%, 73%)
HSVhsv(262, 49%, 97%)
CMYKcmyk(30.8%, 49%, 0%, 3.1%)
CIE-LABlab(61.91, 42.10, -54.52)
CIE-LCHlch(61.91, 68.89, 307.68°)
OKLaboklab(68.89% 0.0848 -0.1536)
OKLCHoklch(68.89% 0.175 298.9)
XYZxyz(41.0399, 30.2947, 91.6630)
Luminance0.3029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EF7 #CAF77E
analogous
#7E8DF7 #AB7EF7 #E77EF7
triadic
#AB7EF7 #F7AB7E #7EF7AB
tetradic
#AB7EF7 #F77E8D #CAF77E #7EF7E7
square
#AB7EF7 #F77E8D #CAF77E #7EF7E7
split-complementary
#AB7EF7 #F7E77E #8DF77E
monochromatic
#610FEC #8544F3 #AB7EF7 #D1B8FB #ECE2FD

Accessibility & contrast

On white

2.97
#AB7EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#AB7EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EF7
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EF7#FFFFFF#000000##000000
##AB7EF71.002.977.067.06
#FFFFFF2.971.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5596FB
Deuteranopia (green-blind)
#6095F4
Tritanopia (blue-blind)
#9B95AF
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7ef7;
/* rgb */ color: rgb(171, 126, 247);
/* oklch */ color: oklch(68.9% 0.175 298.9);
Tailwind
colors: {
  custom: {
    50: '#c7a4fa',
    500: '#ab7ef7',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ef7;
$custom-light: #c7a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ef7",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 247
  },
  "hsl": {
    "h": 262.314,
    "s": 88.321,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68893,
    "c": 0.17539,
    "h": 298.9
  },
  "luminance": 0.30295
}

Semantic roles & 50–950 ramp

primary
#AB7EF7
secondary
#EAF5D6
accent
#E50190
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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