#AB7FF5#AB7FF5

#AB7FF5 is a light, vivid violet. Relative luminance 0.304; OKLCH L 68.9% C 0.171 H 299.1°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#AB7FF5
RGBrgb(171, 127, 245)
HSLhsl(262, 86%, 73%)
HSVhsv(262, 48%, 96%)
CMYKcmyk(30.2%, 48.2%, 0%, 3.9%)
CIE-LABlab(62.02, 41.06, -53.24)
CIE-LCHlch(62.02, 67.23, 307.64°)
OKLaboklab(68.94% 0.0833 -0.1498)
OKLCHoklch(68.94% 0.171 299.1)
XYZxyz(40.8615, 30.4289, 90.0891)
Luminance0.3043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7FF5 #C9F57F
analogous
#7F8EF5 #AB7FF5 #E67FF5
triadic
#AB7FF5 #F5AB7F #7FF5AB
tetradic
#AB7FF5 #F57F8E #C9F57F #7FF5E6
square
#AB7FF5 #F57F8E #C9F57F #7FF5E6
split-complementary
#AB7FF5 #F5E67F #8EF57F
monochromatic
#6212E8 #8646F1 #AB7FF5 #D0B8F9 #ECE3FD

Accessibility & contrast

On white

2.96
#AB7FF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#AB7FF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB7FF5
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7FF5#FFFFFF#000000##000000
##AB7FF51.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5896F9
Deuteranopia (green-blind)
#6395F2
Tritanopia (blue-blind)
#9C95AF
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab7ff5;
/* rgb */ color: rgb(171, 127, 245);
/* oklch */ color: oklch(68.9% 0.171 299.1);
Tailwind
colors: {
  custom: {
    50: '#c7a5f9',
    500: '#ab7ff5',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ff5;
$custom-light: #c7a5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ff5",
  "rgb": {
    "r": 171,
    "g": 127,
    "b": 245
  },
  "hsl": {
    "h": 262.373,
    "s": 85.507,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68944,
    "c": 0.17138,
    "h": 299.1
  },
  "luminance": 0.30429
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB7FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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