#AB7EF8#AB7EF8

#AB7EF8 is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.0% C 0.177 H 298.7°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#AB7EF8
RGBrgb(171, 126, 248)
HSLhsl(262, 90%, 73%)
HSVhsv(262, 49%, 97%)
CMYKcmyk(31%, 49.2%, 0%, 2.7%)
CIE-LABlab(61.96, 42.35, -54.99)
CIE-LCHlch(61.96, 69.41, 307.60°)
OKLaboklab(68.95% 0.0848 -0.1549)
OKLCHoklch(68.95% 0.177 298.7)
XYZxyz(41.1946, 30.3566, 92.4778)
Luminance0.3036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EF8 #CBF87E
analogous
#7E8EF8 #AB7EF8 #E87EF8
triadic
#AB7EF8 #F8AB7E #7EF8AB
tetradic
#AB7EF8 #F87E8E #CBF87E #7EF8E8
square
#AB7EF8 #F87E8E #CBF87E #7EF8E8
split-complementary
#AB7EF8 #F8E87E #8EF87E
monochromatic
#600DEF #8544F5 #AB7EF8 #D1B8FB #ECE2FD

Accessibility & contrast

On white

2.97
#AB7EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#AB7EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EF8
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EF8#FFFFFF#000000##000000
##AB7EF81.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5496FC
Deuteranopia (green-blind)
#5F95F5
Tritanopia (blue-blind)
#9B95B0
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7ef8;
/* rgb */ color: rgb(171, 126, 248);
/* oklch */ color: oklch(69.0% 0.177 298.7);
Tailwind
colors: {
  custom: {
    50: '#c7a4fb',
    500: '#ab7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ef8;
$custom-light: #c7a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ef8",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 262.131,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.6895,
    "c": 0.17663,
    "h": 298.7
  },
  "luminance": 0.30357
}

Semantic roles & 50–950 ramp

primary
#AB7EF8
secondary
#EAF6D5
accent
#E60091
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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