#AB7DF4#AB7DF4

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

Color values

HEX#AB7DF4
RGBrgb(171, 125, 244)
HSLhsl(263, 84%, 72%)
HSVhsv(263, 49%, 96%)
CMYKcmyk(29.9%, 48.8%, 0%, 4.3%)
CIE-LABlab(61.53, 41.92, -53.47)
CIE-LCHlch(61.53, 67.94, 308.10°)
OKLaboklab(68.56% 0.0858 -0.1505)
OKLCHoklch(68.56% 0.173 299.7)
XYZxyz(40.4535, 29.8565, 89.2021)
Luminance0.2986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DF4 #C6F47D
analogous
#7D8BF4 #AB7DF4 #E67DF4
triadic
#AB7DF4 #F4AB7D #7DF4AB
tetradic
#AB7DF4 #F47D8B #C6F47D #7DF4E6
square
#AB7DF4 #F47D8B #C6F47D #7DF4E6
split-complementary
#AB7DF4 #F4E67D #8BF47D
monochromatic
#6413E3 #8745EF #AB7DF4 #CFB5F9 #EDE3FD

Accessibility & contrast

On white

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

On black

6.97
#AB7DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7DF4
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DF4#FFFFFF#000000##000000
##AB7DF41.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5694F8
Deuteranopia (green-blind)
#6194F1
Tritanopia (blue-blind)
#9C93AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7df4;
/* rgb */ color: rgb(171, 125, 244);
/* oklch */ color: oklch(68.6% 0.173 299.7);
Tailwind
colors: {
  custom: {
    50: '#c7a3f8',
    500: '#ab7df4',
    950: '#000000',
  },
}
SCSS
$custom: #ab7df4;
$custom-light: #c7a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7df4",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 244
  },
  "hsl": {
    "h": 263.193,
    "s": 84.397,
    "l": 72.353
  },
  "oklch": {
    "l": 0.6856,
    "c": 0.17319,
    "h": 299.7
  },
  "luminance": 0.29857
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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