#AB8EF7#AB8EF7

#AB8EF7 is a light, vivid violet. Relative luminance 0.347; OKLCH L 71.6% C 0.151 H 295.0°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#AB8EF7
RGBrgb(171, 142, 247)
HSLhsl(257, 87%, 76%)
HSVhsv(257, 43%, 97%)
CMYKcmyk(30.8%, 42.5%, 0%, 3.1%)
CIE-LABlab(65.53, 33.17, -48.78)
CIE-LCHlch(65.53, 58.99, 304.21°)
OKLaboklab(71.61% 0.0639 -0.1368)
OKLCHoklch(71.61% 0.151 295)
XYZxyz(43.2519, 34.7187, 92.4003)
Luminance0.3472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8EF7 #DAF78E
analogous
#8EA6F7 #AB8EF7 #DF8EF7
triadic
#AB8EF7 #F7AB8E #8EF7AB
tetradic
#AB8EF7 #F78EA6 #DAF78E #8EF7DF
square
#AB8EF7 #F78EA6 #DAF78E #8EF7DF
split-complementary
#AB8EF7 #F7DF8E #A6F78E
monochromatic
#561CEF #8155F3 #AB8EF7 #D5C7FB #EAE2FD

Accessibility & contrast

On white

2.64
#AB8EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#AB8EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB8EF7
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8EF7#FFFFFF#000000##000000
##AB8EF71.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA0FB
Deuteranopia (green-blind)
#739EF4
Tritanopia (blue-blind)
#9AA1B7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ab8ef7;
/* rgb */ color: rgb(171, 142, 247);
/* oklch */ color: oklch(71.6% 0.151 295.0);
Tailwind
colors: {
  custom: {
    50: '#c6affa',
    500: '#ab8ef7',
    950: '#000000',
  },
}
SCSS
$custom: #ab8ef7;
$custom-light: #c6affa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8ef7",
  "rgb": {
    "r": 171,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 256.571,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.71612,
    "c": 0.151,
    "h": 295
  },
  "luminance": 0.34719
}

Semantic roles & 50–950 ramp

primary
#AB8EF7
secondary
#ECF5D6
accent
#E302A5
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AB8EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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