#AB7EFD#AB7EFD

#AB7EFD is a light, vivid violet. Relative luminance 0.307; OKLCH L 69.2% C 0.183 H 297.8°. Best body text is #000000 at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#AB7EFD
RGBrgb(171, 126, 253)
HSLhsl(261, 97%, 74%)
HSVhsv(261, 50%, 99%)
CMYKcmyk(32.4%, 50.2%, 0%, 0.8%)
CIE-LABlab(62.23, 43.59, -57.31)
CIE-LCHlch(62.23, 72.00, 307.25°)
OKLaboklab(69.24% 0.0853 -0.1617)
OKLCHoklch(69.24% 0.183 297.8)
XYZxyz(41.9807, 30.6710, 96.6178)
Luminance0.3067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EFD #D0FD7E
analogous
#7E91FD #AB7EFD #EB7EFD
triadic
#AB7EFD #FDAB7E #7EFDAB
tetradic
#AB7EFD #FD7E91 #D0FD7E #7EFDEB
square
#AB7EFD #FD7E91 #D0FD7E #7EFDEB
split-complementary
#AB7EFD #FDEB7E #91FD7E
monochromatic
#5D05FB #8442FC #AB7EFD #D2BAFE #EBE1FF

Accessibility & contrast

On white

2.94
#AB7EFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.13
#AB7EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EFD
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EFD#FFFFFF#000000##000000
##AB7EFD1.002.947.137.13
#FFFFFF2.941.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5097FF
Deuteranopia (green-blind)
#5B95FA
Tritanopia (blue-blind)
#9997B2
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7efd;
/* rgb */ color: rgb(171, 126, 253);
/* oklch */ color: oklch(69.2% 0.183 297.8);
Tailwind
colors: {
  custom: {
    50: '#c7a4ff',
    500: '#ab7efd',
    950: '#000000',
  },
}
SCSS
$custom: #ab7efd;
$custom-light: #c7a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7efd",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 261.26,
    "s": 96.947,
    "l": 74.314
  },
  "oklch": {
    "l": 0.69236,
    "c": 0.18282,
    "h": 297.8
  },
  "luminance": 0.30671
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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