#AB7DFD#AB7DFD

#AB7DFD is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.1% C 0.184 H 298.0°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#AB7DFD
RGBrgb(171, 125, 253)
HSLhsl(262, 97%, 74%)
HSVhsv(262, 51%, 99%)
CMYKcmyk(32.4%, 50.6%, 0%, 0.8%)
CIE-LABlab(62.01, 44.14, -57.66)
CIE-LCHlch(62.01, 72.61, 307.43°)
OKLaboklab(69.08% 0.0865 -0.1627)
OKLCHoklch(69.08% 0.184 298)
XYZxyz(41.8535, 30.4165, 96.5754)
Luminance0.3042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DFD #CFFD7D
analogous
#7D8FFD #AB7DFD #EB7DFD
triadic
#AB7DFD #FDAB7D #7DFDAB
tetradic
#AB7DFD #FD7D8F #CFFD7D #7DFDEB
square
#AB7DFD #FD7D8F #CFFD7D #7DFDEB
split-complementary
#AB7DFD #FDEB7D #8FFD7D
monochromatic
#5D04FB #8441FC #AB7DFD #D2B9FE #ECE1FF

Accessibility & contrast

On white

2.96
#AB7DFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#AB7DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7DFD
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DFD#FFFFFF#000000##000000
##AB7DFD1.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E96FF
Deuteranopia (green-blind)
#5A95FA
Tritanopia (blue-blind)
#9996B1
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7dfd;
/* rgb */ color: rgb(171, 125, 253);
/* oklch */ color: oklch(69.1% 0.184 298.0);
Tailwind
colors: {
  custom: {
    50: '#c7a4ff',
    500: '#ab7dfd',
    950: '#000000',
  },
}
SCSS
$custom: #ab7dfd;
$custom-light: #c7a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7dfd",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 253
  },
  "hsl": {
    "h": 261.563,
    "s": 96.97,
    "l": 74.118
  },
  "oklch": {
    "l": 0.69075,
    "c": 0.1843,
    "h": 298
  },
  "luminance": 0.30417
}

Semantic roles & 50–950 ramp

primary
#AB7DFD
secondary
#EAF7D4
accent
#E60093
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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