#AB7EF5#AB7EF5

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

Color values

HEX#AB7EF5
RGBrgb(171, 126, 245)
HSLhsl(263, 86%, 73%)
HSVhsv(263, 49%, 96%)
CMYKcmyk(30.2%, 48.6%, 0%, 3.9%)
CIE-LABlab(61.80, 41.61, -53.59)
CIE-LCHlch(61.80, 67.85, 307.83°)
OKLaboklab(68.78% 0.0846 -0.1508)
OKLCHoklch(68.78% 0.173 299.3)
XYZxyz(40.7330, 30.1719, 90.0463)
Luminance0.3017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EF5 #C8F57E
analogous
#7E8CF5 #AB7EF5 #E77EF5
triadic
#AB7EF5 #F5AB7E #7EF5AB
tetradic
#AB7EF5 #F57E8C #C8F57E #7EF5E7
square
#AB7EF5 #F57E8C #C8F57E #7EF5E7
split-complementary
#AB7EF5 #F5E77E #8CF57E
monochromatic
#6212E7 #8645F1 #AB7EF5 #D0B7F9 #EDE3FD

Accessibility & contrast

On white

2.99
#AB7EF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#AB7EF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EF5
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EF5#FFFFFF#000000##000000
##AB7EF51.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5795F9
Deuteranopia (green-blind)
#6294F2
Tritanopia (blue-blind)
#9C94AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7ef5;
/* rgb */ color: rgb(171, 126, 245);
/* oklch */ color: oklch(68.8% 0.173 299.3);
Tailwind
colors: {
  custom: {
    50: '#c7a4f9',
    500: '#ab7ef5',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ef5;
$custom-light: #c7a4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ef5",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 262.689,
    "s": 85.612,
    "l": 72.745
  },
  "oklch": {
    "l": 0.6878,
    "c": 0.17291,
    "h": 299.3
  },
  "luminance": 0.30172
}

Semantic roles & 50–950 ramp

primary
#AB7EF5
secondary
#E9F5D6
accent
#E2038E
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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