#AB7EFF#AB7EFF

#AB7EFF is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.4% C 0.185 H 297.4°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#AB7EFF
RGBrgb(171, 126, 255)
HSLhsl(261, 100%, 75%)
HSVhsv(261, 51%, 100%)
CMYKcmyk(32.9%, 50.6%, 0%, 0%)
CIE-LABlab(62.34, 44.08, -58.24)
CIE-LCHlch(62.34, 73.04, 307.12°)
OKLaboklab(69.35% 0.0854 -0.1644)
OKLCHoklch(69.35% 0.185 297.4)
XYZxyz(42.3010, 30.7991, 98.3045)
Luminance0.3080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7EFF #D2FF7E
analogous
#7E92FF #AB7EFF #EB7EFF
triadic
#AB7EFF #FFAB7E #7EFFAB
tetradic
#AB7EFF #FF7E92 #D2FF7E #7EFFEB
square
#AB7EFF #FF7E92 #D2FF7E #7EFFEB
split-complementary
#AB7EFF #FFEB7E #92FF7E
monochromatic
#5B04FF #8341FF #AB7EFF #D3BBFF #EBE0FF

Accessibility & contrast

On white

2.93
#AB7EFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#AB7EFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7EFF
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7EFF#FFFFFF#000000##000000
##AB7EFF1.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E97FF
Deuteranopia (green-blind)
#5A95FC
Tritanopia (blue-blind)
#9997B3
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab7eff;
/* rgb */ color: rgb(171, 126, 255);
/* oklch */ color: oklch(69.4% 0.185 297.4);
Tailwind
colors: {
  custom: {
    50: '#c8a4ff',
    500: '#ab7eff',
    950: '#000000',
  },
}
SCSS
$custom: #ab7eff;
$custom-light: #c8a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7eff",
  "rgb": {
    "r": 171,
    "g": 126,
    "b": 255
  },
  "hsl": {
    "h": 260.93,
    "s": 100,
    "l": 74.706
  },
  "oklch": {
    "l": 0.69352,
    "c": 0.18529,
    "h": 297.4
  },
  "luminance": 0.308
}

Semantic roles & 50–950 ramp

primary
#AB7EFF
secondary
#EBF7D4
accent
#E60095
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AB7EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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