#AB7DF5#AB7DF5

#AB7DF5 is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.6% C 0.174 H 299.5°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#AB7DF5
RGBrgb(171, 125, 245)
HSLhsl(263, 86%, 73%)
HSVhsv(263, 49%, 96%)
CMYKcmyk(30.2%, 49%, 0%, 3.9%)
CIE-LABlab(61.58, 42.17, -53.94)
CIE-LCHlch(61.58, 68.46, 308.02°)
OKLaboklab(68.62% 0.0859 -0.1518)
OKLCHoklch(68.62% 0.174 299.5)
XYZxyz(40.6057, 29.9174, 90.0039)
Luminance0.2992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DF5 #C7F57D
analogous
#7D8BF5 #AB7DF5 #E77DF5
triadic
#AB7DF5 #F5AB7D #7DF5AB
tetradic
#AB7DF5 #F57D8B #C7F57D #7DF5E7
square
#AB7DF5 #F57D8B #C7F57D #7DF5E7
split-complementary
#AB7DF5 #F5E77D #8BF57D
monochromatic
#6312E6 #8644F1 #AB7DF5 #D0B6F9 #EDE3FD

Accessibility & contrast

On white

3.01
#AB7DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#AB7DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7DF5
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DF5#FFFFFF#000000##000000
##AB7DF51.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5595F9
Deuteranopia (green-blind)
#6094F2
Tritanopia (blue-blind)
#9C93AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7df5;
/* rgb */ color: rgb(171, 125, 245);
/* oklch */ color: oklch(68.6% 0.174 299.5);
Tailwind
colors: {
  custom: {
    50: '#c7a3f9',
    500: '#ab7df5',
    950: '#000000',
  },
}
SCSS
$custom: #ab7df5;
$custom-light: #c7a3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7df5",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 245
  },
  "hsl": {
    "h": 263,
    "s": 85.714,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68616,
    "c": 0.17443,
    "h": 299.5
  },
  "luminance": 0.29918
}

Semantic roles & 50–950 ramp

primary
#AB7DF5
secondary
#E9F5D6
accent
#E2038D
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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