#AB5CF7#AB5CF7

#AB5CF7 is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 63.9% C 0.224 H 304.2°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AB5CF7
RGBrgb(171, 92, 247)
HSLhsl(271, 91%, 66%)
HSVhsv(271, 63%, 97%)
CMYKcmyk(30.8%, 62.8%, 0%, 3.1%)
CIE-LABlab(55.10, 59.95, -65.42)
CIE-LCHlch(55.10, 88.73, 312.50°)
OKLaboklab(63.89% 0.126 -0.1854)
OKLCHoklch(63.89% 0.224 304.2)
XYZxyz(37.4065, 23.0278, 90.4518)
Luminance0.2303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CF7 #A8F75C
analogous
#5E5CF7 #AB5CF7 #F75CF5
triadic
#AB5CF7 #F7AB5C #5CF7AB
tetradic
#AB5CF7 #F75E5C #A8F75C #5CF5F7
square
#AB5CF7 #F75E5C #A8F75C #5CF5F7
split-complementary
#AB5CF7 #F5F75C #5CF75E
monochromatic
#6E0ACE #8D22F4 #AB5CF7 #C996FA #E7D1FD

Accessibility & contrast

On white

3.75
#AB5CF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#AB5CF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CF7
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CF7#FFFFFF#000000##000000
##AB5CF71.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FC
Deuteranopia (green-blind)
#3084F4
Tritanopia (blue-blind)
#9D7DA1
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ab5cf7;
/* rgb */ color: rgb(171, 92, 247);
/* oklch */ color: oklch(63.9% 0.224 304.2);
Tailwind
colors: {
  custom: {
    50: '#c98efb',
    500: '#ab5cf7',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cf7;
$custom-light: #c98efb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cf7",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 247
  },
  "hsl": {
    "h": 270.581,
    "s": 90.643,
    "l": 66.471
  },
  "oklch": {
    "l": 0.63892,
    "c": 0.22418,
    "h": 304.2
  },
  "luminance": 0.23028
}

Semantic roles & 50–950 ramp

primary
#AB5CF7
secondary
#D7F1BE
accent
#E60071
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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