#AB7DF7#AB7DF7

#AB7DF7 is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.7% C 0.177 H 299.1°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#AB7DF7
RGBrgb(171, 125, 247)
HSLhsl(263, 88%, 73%)
HSVhsv(263, 49%, 97%)
CMYKcmyk(30.8%, 49.4%, 0%, 3.1%)
CIE-LABlab(61.69, 42.66, -54.87)
CIE-LCHlch(61.69, 69.50, 307.86°)
OKLaboklab(68.73% 0.086 -0.1546)
OKLCHoklch(68.73% 0.177 299.1)
XYZxyz(40.9127, 30.0402, 91.6205)
Luminance0.3004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DF7 #C9F77D
analogous
#7D8CF7 #AB7DF7 #E87DF7
triadic
#AB7DF7 #F7AB7D #7DF7AB
tetradic
#AB7DF7 #F77D8C #C9F77D #7DF7E8
square
#AB7DF7 #F77D8C #C9F77D #7DF7E8
split-complementary
#AB7DF7 #F7E87D #8CF77D
monochromatic
#620EEB #8643F3 #AB7DF7 #D0B7FB #ECE2FD

Accessibility & contrast

On white

3.00
#AB7DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#AB7DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7DF7
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DF7#FFFFFF#000000##000000
##AB7DF71.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab7df7;
/* rgb */ color: rgb(171, 125, 247);
/* oklch */ color: oklch(68.7% 0.177 299.1);
Tailwind
colors: {
  custom: {
    50: '#c7a3fa',
    500: '#ab7df7',
    950: '#000000',
  },
}
SCSS
$custom: #ab7df7;
$custom-light: #c7a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7df7",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 262.623,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.6873,
    "c": 0.1769,
    "h": 299.1
  },
  "luminance": 0.30041
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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