#AB7DFF#AB7DFF

#AB7DFF is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.2% C 0.187 H 297.6°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#AB7DFF
RGBrgb(171, 125, 255)
HSLhsl(261, 100%, 75%)
HSVhsv(261, 51%, 100%)
CMYKcmyk(32.9%, 51%, 0%, 0%)
CIE-LABlab(62.12, 44.63, -58.58)
CIE-LCHlch(62.12, 73.65, 307.30°)
OKLaboklab(69.19% 0.0867 -0.1654)
OKLCHoklch(69.19% 0.187 297.6)
XYZxyz(42.1738, 30.5446, 98.2621)
Luminance0.3054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DFF #D1FF7D
analogous
#7D90FF #AB7DFF #EC7DFF
triadic
#AB7DFF #FFAB7D #7DFFAB
tetradic
#AB7DFF #FF7D90 #D1FF7D #7DFFEC
square
#AB7DFF #FF7D90 #D1FF7D #7DFFEC
split-complementary
#AB7DFF #FFEC7D #90FF7D
monochromatic
#5C03FF #8340FF #AB7DFF #D3BAFF #EBE0FF

Accessibility & contrast

On white

2.95
#AB7DFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#AB7DFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7DFF
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DFF#FFFFFF#000000##000000
##AB7DFF1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C96FF
Deuteranopia (green-blind)
#5895FC
Tritanopia (blue-blind)
#9996B2
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7dff;
/* rgb */ color: rgb(171, 125, 255);
/* oklch */ color: oklch(69.2% 0.187 297.6);
Tailwind
colors: {
  custom: {
    50: '#c8a4ff',
    500: '#ab7dff',
    950: '#000000',
  },
}
SCSS
$custom: #ab7dff;
$custom-light: #c8a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7dff",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 255
  },
  "hsl": {
    "h": 261.231,
    "s": 100,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69192,
    "c": 0.18676,
    "h": 297.6
  },
  "luminance": 0.30545
}

Semantic roles & 50–950 ramp

primary
#AB7DFF
secondary
#EBF7D4
accent
#E60094
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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