#AB70E2#AB70E2

#AB70E2 is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.5% C 0.172 H 306.1°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AB70E2
RGBrgb(171, 112, 226)
HSLhsl(271, 66%, 66%)
HSVhsv(271, 50%, 89%)
CMYKcmyk(24.3%, 50.4%, 0%, 11.4%)
CIE-LABlab(57.79, 44.76, -49.40)
CIE-LCHlch(57.79, 66.67, 312.18°)
OKLaboklab(65.47% 0.1011 -0.1386)
OKLCHoklch(65.47% 0.172 306.1)
XYZxyz(36.3134, 25.7375, 74.9916)
Luminance0.2574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB70E2 #A7E270
analogous
#7270E2 #AB70E2 #E270E0
triadic
#AB70E2 #E2AB70 #70E2AB
tetradic
#AB70E2 #E27270 #A7E270 #70E0E2
square
#AB70E2 #E27270 #A7E270 #70E0E2
split-complementary
#AB70E2 #E0E270 #70E272
monochromatic
#6E24B3 #8D3DD8 #AB70E2 #C9A3EC #E7D6F7

Accessibility & contrast

On white

3.42
#AB70E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#AB70E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB70E2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB70E2#FFFFFF#000000##000000
##AB70E21.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E89E6
Deuteranopia (green-blind)
#5F8BDF
Tritanopia (blue-blind)
#A2849F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ab70e2;
/* rgb */ color: rgb(171, 112, 226);
/* oklch */ color: oklch(65.5% 0.172 306.1);
Tailwind
colors: {
  custom: {
    50: '#c69beb',
    500: '#ab70e2',
    950: '#000000',
  },
}
SCSS
$custom: #ab70e2;
$custom-light: #c69beb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab70e2",
  "rgb": {
    "r": 171,
    "g": 112,
    "b": 226
  },
  "hsl": {
    "h": 271.053,
    "s": 66.279,
    "l": 66.275
  },
  "oklch": {
    "l": 0.65469,
    "c": 0.17156,
    "h": 306.1
  },
  "luminance": 0.25737
}

Semantic roles & 50–950 ramp

primary
#AB70E2
secondary
#D6EAC4
accent
#CE1770
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AB70E2

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

Preview Lab → · Contrast checker → · Palette generator →

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