#AB7EFE#AB7EFE

#AB7EFE is a light, vivid violet. Relative luminance 0.307; OKLCH L 69.3% C 0.184 H 297.6°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#AB7EFE
RGBrgb(171, 126, 254)
HSLhsl(261, 98%, 75%)
HSVhsv(261, 50%, 100%)
CMYKcmyk(32.7%, 50.4%, 0%, 0.4%)
CIE-LABlab(62.28, 43.83, -57.77)
CIE-LCHlch(62.28, 72.52, 307.19°)
OKLaboklab(69.29% 0.0853 -0.1631)
OKLCHoklch(69.29% 0.184 297.6)
XYZxyz(42.1404, 30.7349, 97.4590)
Luminance0.3074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EFE #D1FE7E
analogous
#7E91FE #AB7EFE #EB7EFE
triadic
#AB7EFE #FEAB7E #7EFEAB
tetradic
#AB7EFE #FE7E91 #D1FE7E #7EFEEB
square
#AB7EFE #FE7E91 #D1FE7E #7EFEEB
split-complementary
#AB7EFE #FEEB7E #91FE7E
monochromatic
#5C05FD #8341FE #AB7EFE #D3BBFE #EBE1FF

Accessibility & contrast

On white

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

On black

7.15
#AB7EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EFE
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EFE#FFFFFF#000000##000000
##AB7EFE1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F97FF
Deuteranopia (green-blind)
#5A95FB
Tritanopia (blue-blind)
#9997B2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab7efe;
/* rgb */ color: rgb(171, 126, 254);
/* oklch */ color: oklch(69.3% 0.184 297.6);
Tailwind
colors: {
  custom: {
    50: '#c7a4ff',
    500: '#ab7efe',
    950: '#000000',
  },
}
SCSS
$custom: #ab7efe;
$custom-light: #c7a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7efe",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 261.094,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69294,
    "c": 0.18405,
    "h": 297.6
  },
  "luminance": 0.30735
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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