#AC5AF7#AC5AF7

#AC5AF7 is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.7% C 0.227 H 304.8°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AC5AF7
RGBrgb(172, 90, 247)
HSLhsl(271, 91%, 66%)
HSVhsv(271, 64%, 97%)
CMYKcmyk(30.4%, 63.6%, 0%, 3.1%)
CIE-LABlab(54.86, 61.12, -65.80)
CIE-LCHlch(54.86, 89.81, 312.89°)
OKLaboklab(63.75% 0.1294 -0.1865)
OKLCHoklch(63.75% 0.227 304.8)
XYZxyz(37.4542, 22.7986, 90.4051)
Luminance0.2280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC5AF7 #A5F75A
analogous
#5D5AF7 #AC5AF7 #F75AF3
triadic
#AC5AF7 #F7AC5A #5AF7AC
tetradic
#AC5AF7 #F75D5A #A5F75A #5AF3F7
square
#AC5AF7 #F75D5A #A5F75A #5AF3F7
split-complementary
#AC5AF7 #F3F75A #5AF75D
monochromatic
#700ACD #8F20F4 #AC5AF7 #C994FA #E7CFFD

Accessibility & contrast

On white

3.78
#AC5AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#AC5AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC5AF7
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC5AF7#FFFFFF#000000##000000
##AC5AF71.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FC
Deuteranopia (green-blind)
#2E83F4
Tritanopia (blue-blind)
#9E7CA1
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ac5af7;
/* rgb */ color: rgb(172, 90, 247);
/* oklch */ color: oklch(63.7% 0.227 304.8);
Tailwind
colors: {
  custom: {
    50: '#c98dfb',
    500: '#ac5af7',
    950: '#000000',
  },
}
SCSS
$custom: #ac5af7;
$custom-light: #c98dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ac5af7",
  "rgb": {
    "r": 172,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 271.338,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63746,
    "c": 0.22703,
    "h": 304.8
  },
  "luminance": 0.22798
}

Semantic roles & 50–950 ramp

primary
#AC5AF7
secondary
#D5F0BD
accent
#E6006E
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85

Preview Lab

Preview with #AC5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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