#AB7EF6#AB7EF6

#AB7EF6 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.8% C 0.174 H 299.1°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AB7EF6
RGBrgb(171, 126, 246)
HSLhsl(263, 87%, 73%)
HSVhsv(263, 49%, 96%)
CMYKcmyk(30.5%, 48.8%, 0%, 3.5%)
CIE-LABlab(61.85, 41.86, -54.06)
CIE-LCHlch(61.85, 68.37, 307.75°)
OKLaboklab(68.84% 0.0847 -0.1522)
OKLCHoklch(68.84% 0.174 299.1)
XYZxyz(40.8860, 30.2331, 90.8524)
Luminance0.3023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EF6 #C9F67E
analogous
#7E8DF6 #AB7EF6 #E77EF6
triadic
#AB7EF6 #F6AB7E #7EF6AB
tetradic
#AB7EF6 #F67E8D #C9F67E #7EF6E7
square
#AB7EF6 #F67E8D #C9F67E #7EF6E7
split-complementary
#AB7EF6 #F6E77E #8DF67E
monochromatic
#6210E9 #8645F2 #AB7EF6 #D0B7FA #ECE2FD

Accessibility & contrast

On white

2.98
#AB7EF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#AB7EF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EF6
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EF6#FFFFFF#000000##000000
##AB7EF61.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5695FA
Deuteranopia (green-blind)
#6194F3
Tritanopia (blue-blind)
#9C94AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab7ef6;
/* rgb */ color: rgb(171, 126, 246);
/* oklch */ color: oklch(68.8% 0.174 299.1);
Tailwind
colors: {
  custom: {
    50: '#c7a4fa',
    500: '#ab7ef6',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ef6;
$custom-light: #c7a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ef6",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 262.5,
    "s": 86.957,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68836,
    "c": 0.17415,
    "h": 299.1
  },
  "luminance": 0.30233
}

Semantic roles & 50–950 ramp

primary
#AB7EF6
secondary
#E9F5D6
accent
#E4028F
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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