#AB7DF8#AB7DF8

#AB7DF8 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.8% C 0.178 H 298.9°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#AB7DF8
RGBrgb(171, 125, 248)
HSLhsl(262, 90%, 73%)
HSVhsv(262, 50%, 97%)
CMYKcmyk(31%, 49.6%, 0%, 2.7%)
CIE-LABlab(61.74, 42.90, -55.34)
CIE-LCHlch(61.74, 70.02, 307.79°)
OKLaboklab(68.79% 0.0861 -0.1559)
OKLCHoklch(68.79% 0.178 298.9)
XYZxyz(41.0674, 30.1021, 92.4354)
Luminance0.3010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DF8 #CAF87D
analogous
#7D8CF8 #AB7DF8 #E87DF8
triadic
#AB7DF8 #F8AB7D #7DF8AB
tetradic
#AB7DF8 #F87D8C #CAF87D #7DF8E8
square
#AB7DF8 #F87D8C #CAF87D #7DF8E8
split-complementary
#AB7DF8 #F8E87D #8CF87D
monochromatic
#610DEE #8543F5 #AB7DF8 #D1B7FB #ECE2FD

Accessibility & contrast

On white

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

On black

7.02
#AB7DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7DF8
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DF8#FFFFFF#000000##000000
##AB7DF81.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5395FC
Deuteranopia (green-blind)
#5E94F5
Tritanopia (blue-blind)
#9B94AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7df8;
/* rgb */ color: rgb(171, 125, 248);
/* oklch */ color: oklch(68.8% 0.178 298.9);
Tailwind
colors: {
  custom: {
    50: '#c7a3fb',
    500: '#ab7df8',
    950: '#000000',
  },
}
SCSS
$custom: #ab7df8;
$custom-light: #c7a3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7df8",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 262.439,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68787,
    "c": 0.17814,
    "h": 298.9
  },
  "luminance": 0.30102
}

Semantic roles & 50–950 ramp

primary
#AB7DF8
secondary
#EAF6D5
accent
#E60090
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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