#AB8EF2#AB8EF2

#AB8EF2 is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.4% C 0.144 H 295.9°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#AB8EF2
RGBrgb(171, 142, 242)
HSLhsl(257, 79%, 75%)
HSVhsv(257, 41%, 95%)
CMYKcmyk(29.3%, 41.3%, 0%, 5.1%)
CIE-LABlab(65.29, 31.93, -46.42)
CIE-LCHlch(65.29, 56.34, 304.52°)
OKLaboklab(71.35% 0.0631 -0.1299)
OKLCHoklch(71.35% 0.144 295.9)
XYZxyz(42.4907, 34.4142, 88.3912)
Luminance0.3442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8EF2 #D5F28E
analogous
#8EA3F2 #AB8EF2 #DD8EF2
triadic
#AB8EF2 #F2AB8E #8EF2AB
tetradic
#AB8EF2 #F28EA3 #D5F28E #8EF2DD
square
#AB8EF2 #F28EA3 #D5F28E #8EF2DD
split-complementary
#AB8EF2 #F2DD8E #A3F28E
monochromatic
#5920E5 #8257EC #AB8EF2 #D4C5F8 #EBE4FC

Accessibility & contrast

On white

2.66
#AB8EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#AB8EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB8EF2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8EF2#FFFFFF#000000##000000
##AB8EF21.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF6
Deuteranopia (green-blind)
#769DEF
Tritanopia (blue-blind)
#9CA0B4
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ab8ef2;
/* rgb */ color: rgb(171, 142, 242);
/* oklch */ color: oklch(71.4% 0.144 295.9);
Tailwind
colors: {
  custom: {
    50: '#c6aff7',
    500: '#ab8ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ab8ef2;
$custom-light: #c6aff7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8ef2",
  "rgb": {
    "r": 171,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 257.4,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.71353,
    "c": 0.14443,
    "h": 295.9
  },
  "luminance": 0.34415
}

Semantic roles & 50–950 ramp

primary
#AB8EF2
secondary
#EBF4D7
accent
#DC0A9F
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #AB8EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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