#AB5EF7#AB5EF7

#AB5EF7 is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.2% C 0.222 H 303.9°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AB5EF7
RGBrgb(171, 94, 247)
HSLhsl(270, 91%, 67%)
HSVhsv(270, 62%, 97%)
CMYKcmyk(30.8%, 61.9%, 0%, 3.1%)
CIE-LABlab(55.46, 58.97, -64.84)
CIE-LCHlch(55.46, 87.65, 312.28°)
OKLaboklab(64.15% 0.1237 -0.1838)
OKLCHoklch(64.15% 0.222 303.9)
XYZxyz(37.5820, 23.3788, 90.5103)
Luminance0.2338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5EF7 #AAF75E
analogous
#5F5EF7 #AB5EF7 #F75EF7
triadic
#AB5EF7 #F7AB5E #5EF7AB
tetradic
#AB5EF7 #F75F5E #AAF75E #5EF7F7
square
#AB5EF7 #F75F5E #AAF75E #5EF7F7
split-complementary
#AB5EF7 #F7F75E #5EF75F
monochromatic
#6E0AD0 #8D24F4 #AB5EF7 #C998FA #E8D3FD

Accessibility & contrast

On white

3.70
#AB5EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#AB5EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5EF7
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5EF7#FFFFFF#000000##000000
##AB5EF71.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FC
Deuteranopia (green-blind)
#3485F4
Tritanopia (blue-blind)
#9D7EA2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ab5ef7;
/* rgb */ color: rgb(171, 94, 247);
/* oklch */ color: oklch(64.2% 0.222 303.9);
Tailwind
colors: {
  custom: {
    50: '#c990fb',
    500: '#ab5ef7',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ef7;
$custom-light: #c990fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ef7",
  "rgb": {
    "r": 171,
    "g": 94,
    "b": 247
  },
  "hsl": {
    "h": 270.196,
    "s": 90.533,
    "l": 66.863
  },
  "oklch": {
    "l": 0.64152,
    "c": 0.22152,
    "h": 303.9
  },
  "luminance": 0.23379
}

Semantic roles & 50–950 ramp

primary
#AB5EF7
secondary
#D8F1C0
accent
#E60072
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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