#AB7EFA#AB7EFA

#AB7EFA is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.1% C 0.179 H 298.3°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#AB7EFA
RGBrgb(171, 126, 250)
HSLhsl(262, 93%, 74%)
HSVhsv(262, 50%, 98%)
CMYKcmyk(31.6%, 49.6%, 0%, 2%)
CIE-LABlab(62.07, 42.84, -55.92)
CIE-LCHlch(62.07, 70.45, 307.46°)
OKLaboklab(69.06% 0.085 -0.1577)
OKLCHoklch(69.06% 0.179 298.3)
XYZxyz(41.5066, 30.4813, 94.1207)
Luminance0.3048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EFA #CDFA7E
analogous
#7E8FFA #AB7EFA #E97EFA
triadic
#AB7EFA #FAAB7E #7EFAAB
tetradic
#AB7EFA #FA7E8F #CDFA7E #7EFAE9
square
#AB7EFA #FA7E8F #CDFA7E #7EFAE9
split-complementary
#AB7EFA #FAE97E #8FFA7E
monochromatic
#5F09F4 #8543F8 #AB7EFA #D1B9FC #ECE2FE

Accessibility & contrast

On white

2.96
#AB7EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#AB7EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EFA
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EFA#FFFFFF#000000##000000
##AB7EFA1.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5396FE
Deuteranopia (green-blind)
#5E95F7
Tritanopia (blue-blind)
#9A96B0
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7efa;
/* rgb */ color: rgb(171, 126, 250);
/* oklch */ color: oklch(69.1% 0.179 298.3);
Tailwind
colors: {
  custom: {
    50: '#c7a4fc',
    500: '#ab7efa',
    950: '#000000',
  },
}
SCSS
$custom: #ab7efa;
$custom-light: #c7a4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7efa",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 261.774,
    "s": 92.537,
    "l": 73.725
  },
  "oklch": {
    "l": 0.69064,
    "c": 0.17911,
    "h": 298.3
  },
  "luminance": 0.30482
}

Semantic roles & 50–950 ramp

primary
#AB7EFA
secondary
#EAF6D5
accent
#E60092
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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