#AB70EC#AB70EC

#AB70EC is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.0% C 0.183 H 303.8°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AB70EC
RGBrgb(171, 112, 236)
HSLhsl(269, 77%, 68%)
HSVhsv(269, 53%, 93%)
CMYKcmyk(27.5%, 52.5%, 0%, 7.5%)
CIE-LABlab(58.32, 47.10, -54.14)
CIE-LCHlch(58.32, 71.75, 311.02°)
OKLaboklab(66.04% 0.1019 -0.1524)
OKLCHoklch(66.04% 0.183 303.8)
XYZxyz(37.7257, 26.3025, 82.4300)
Luminance0.2630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB70EC #B1EC70
analogous
#7073EC #AB70EC #E970EC
triadic
#AB70EC #ECAB70 #70ECAB
tetradic
#AB70EC #EC7073 #B1EC70 #70ECE9
square
#AB70EC #EC7073 #B1EC70 #70ECE9
split-complementary
#AB70EC #ECE970 #73EC70
monochromatic
#6D1AC7 #8B3AE5 #AB70EC #CBA6F3 #EADCFA

Accessibility & contrast

On white

3.35
#AB70EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#AB70EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB70EC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB70EC#FFFFFF#000000##000000
##AB70EC1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#468BF0
Deuteranopia (green-blind)
#588CE9
Tritanopia (blue-blind)
#9F87A4
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ab70ec;
/* rgb */ color: rgb(171, 112, 236);
/* oklch */ color: oklch(66.0% 0.183 303.8);
Tailwind
colors: {
  custom: {
    50: '#c79bf3',
    500: '#ab70ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab70ec;
$custom-light: #c79bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab70ec",
  "rgb": {
    "r": 171,
    "g": 112,
    "b": 236
  },
  "hsl": {
    "h": 268.548,
    "s": 76.543,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66039,
    "c": 0.18333,
    "h": 303.8
  },
  "luminance": 0.26302
}

Semantic roles & 50–950 ramp

primary
#AB70EC
secondary
#DDEFC9
accent
#D90D78
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB70EC

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

Preview Lab → · Contrast checker → · Palette generator →

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