#AB8DFD#AB8DFD

#AB8DFD is a light, vivid violet. Relative luminance 0.348; OKLCH L 71.8% C 0.160 H 294.3°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#AB8DFD
RGBrgb(171, 141, 253)
HSLhsl(256, 97%, 77%)
HSVhsv(256, 44%, 99%)
CMYKcmyk(32.4%, 44.3%, 0%, 0.8%)
CIE-LABlab(65.59, 35.23, -51.97)
CIE-LCHlch(65.59, 62.79, 304.13°)
OKLaboklab(71.76% 0.0661 -0.1461)
OKLCHoklch(71.76% 0.16 294.3)
XYZxyz(44.0446, 34.7988, 97.3058)
Luminance0.3480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8DFD #DFFD8D
analogous
#8DA7FD #AB8DFD #E38DFD
triadic
#AB8DFD #FDAB8D #8DFDAB
tetradic
#AB8DFD #FD8DA7 #DFFD8D #8DFDE3
square
#AB8DFD #FD8DA7 #DFFD8D #8DFDE3
split-complementary
#AB8DFD #FDE38D #A7FD8D
monochromatic
#5215FB #7F51FC #AB8DFD #D7C9FE #E9E1FE

Accessibility & contrast

On white

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

On black

7.96
#AB8DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB8DFD
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8DFD#FFFFFF#000000##000000
##AB8DFD1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A0FF
Deuteranopia (green-blind)
#6E9EFA
Tritanopia (blue-blind)
#98A2B9
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ab8dfd;
/* rgb */ color: rgb(171, 141, 253);
/* oklch */ color: oklch(71.8% 0.160 294.3);
Tailwind
colors: {
  custom: {
    50: '#c7aefe',
    500: '#ab8dfd',
    950: '#000000',
  },
}
SCSS
$custom: #ab8dfd;
$custom-light: #c7aefe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8dfd",
  "rgb": {
    "r": 171,
    "g": 141,
    "b": 253
  },
  "hsl": {
    "h": 256.071,
    "s": 96.552,
    "l": 77.255
  },
  "oklch": {
    "l": 0.71755,
    "c": 0.16036,
    "h": 294.3
  },
  "luminance": 0.348
}

Semantic roles & 50–950 ramp

primary
#AB8DFD
secondary
#EEF7D4
accent
#E600A8
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AB8DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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