#AB8DF7#AB8DF7

#AB8DF7 is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.4% C 0.153 H 295.3°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#AB8DF7
RGBrgb(171, 141, 247)
HSLhsl(257, 87%, 76%)
HSVhsv(257, 43%, 97%)
CMYKcmyk(30.8%, 42.9%, 0%, 3.1%)
CIE-LABlab(65.30, 33.73, -49.15)
CIE-LCHlch(65.30, 59.61, 304.46°)
OKLaboklab(71.44% 0.0652 -0.1379)
OKLCHoklch(71.44% 0.153 295.3)
XYZxyz(43.1038, 34.4225, 92.3509)
Luminance0.3442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8DF7 #D9F78D
analogous
#8DA4F7 #AB8DF7 #E08DF7
triadic
#AB8DF7 #F7AB8D #8DF7AB
tetradic
#AB8DF7 #F78DA4 #D9F78D #8DF7E0
square
#AB8DF7 #F78DA4 #D9F78D #8DF7E0
split-complementary
#AB8DF7 #F7E08D #A4F78D
monochromatic
#571BEF #8154F3 #AB8DF7 #D5C6FB #EAE2FD

Accessibility & contrast

On white

2.66
#AB8DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#AB8DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB8DF7
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8DF7#FFFFFF#000000##000000
##AB8DF71.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9FFB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#9AA0B6
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ab8df7;
/* rgb */ color: rgb(171, 141, 247);
/* oklch */ color: oklch(71.4% 0.153 295.3);
Tailwind
colors: {
  custom: {
    50: '#c6aefa',
    500: '#ab8df7',
    950: '#000000',
  },
}
SCSS
$custom: #ab8df7;
$custom-light: #c6aefa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8df7",
  "rgb": {
    "r": 171,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 256.981,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.71436,
    "c": 0.15253,
    "h": 295.3
  },
  "luminance": 0.34423
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB8DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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