#AB72EC#AB72EC

#AB72EC is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.3% C 0.180 H 303.4°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AB72EC
RGBrgb(171, 114, 236)
HSLhsl(268, 76%, 69%)
HSVhsv(268, 52%, 93%)
CMYKcmyk(27.5%, 51.7%, 0%, 7.5%)
CIE-LABlab(58.74, 46.02, -53.47)
CIE-LCHlch(58.74, 70.55, 310.72°)
OKLaboklab(66.35% 0.0993 -0.1505)
OKLCHoklch(66.35% 0.18 303.4)
XYZxyz(37.9489, 26.7488, 82.5044)
Luminance0.2675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB72EC #B3EC72
analogous
#7276EC #AB72EC #E872EC
triadic
#AB72EC #ECAB72 #72ECAB
tetradic
#AB72EC #EC7276 #B3EC72 #72ECE8
square
#AB72EC #EC7276 #B3EC72 #72ECE8
split-complementary
#AB72EC #ECE872 #76EC72
monochromatic
#6C1BC9 #8B3CE5 #AB72EC #CBA8F3 #EBDEFB

Accessibility & contrast

On white

3.31
#AB72EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#AB72EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB72EC
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB72EC#FFFFFF#000000##000000
##AB72EC1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#498CF0
Deuteranopia (green-blind)
#5A8DE9
Tritanopia (blue-blind)
#9F89A4
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ab72ec;
/* rgb */ color: rgb(171, 114, 236);
/* oklch */ color: oklch(66.3% 0.180 303.4);
Tailwind
colors: {
  custom: {
    50: '#c79cf3',
    500: '#ab72ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab72ec;
$custom-light: #c79cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab72ec",
  "rgb": {
    "r": 171,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 268.033,
    "s": 76.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66349,
    "c": 0.18028,
    "h": 303.4
  },
  "luminance": 0.26749
}

Semantic roles & 50–950 ramp

primary
#AB72EC
secondary
#DEEFCB
accent
#D80D79
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB72EC

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

Preview Lab → · Contrast checker → · Palette generator →

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