#AC5AF4#AC5AF4

#AC5AF4 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.5% C 0.224 H 305.4°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AC5AF4
RGBrgb(172, 90, 244)
HSLhsl(272, 88%, 65%)
HSVhsv(272, 63%, 96%)
CMYKcmyk(29.5%, 63.1%, 0%, 4.3%)
CIE-LABlab(54.67, 60.44, -64.44)
CIE-LCHlch(54.67, 88.35, 313.17°)
OKLaboklab(63.55% 0.1296 -0.1825)
OKLCHoklch(63.55% 0.224 305.4)
XYZxyz(36.9950, 22.6149, 87.9866)
Luminance0.2261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC5AF4 #A2F45A
analogous
#5F5AF4 #AC5AF4 #F45AEF
triadic
#AC5AF4 #F4AC5A #5AF4AC
tetradic
#AC5AF4 #F45F5A #A2F45A #5AEFF4
square
#AC5AF4 #F45F5A #A2F45A #5AEFF4
split-complementary
#AC5AF4 #EFF45A #5AF45F
monochromatic
#700DC6 #8F21F0 #AC5AF4 #C993F8 #E6CDFC

Accessibility & contrast

On white

3.80
#AC5AF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#AC5AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC5AF4
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC5AF4#FFFFFF#000000##000000
##AC5AF41.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F9
Deuteranopia (green-blind)
#3383F1
Tritanopia (blue-blind)
#9F7B9F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ac5af4;
/* rgb */ color: rgb(172, 90, 244);
/* oklch */ color: oklch(63.5% 0.224 305.4);
Tailwind
colors: {
  custom: {
    50: '#c98df9',
    500: '#ac5af4',
    950: '#000000',
  },
}
SCSS
$custom: #ac5af4;
$custom-light: #c98df9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac5af4",
  "rgb": {
    "r": 172,
    "g": 90,
    "b": 244
  },
  "hsl": {
    "h": 271.948,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.63548,
    "c": 0.22387,
    "h": 305.4
  },
  "luminance": 0.22615
}

Semantic roles & 50–950 ramp

primary
#AC5AF4
secondary
#D3EFBB
accent
#E4016B
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AC5AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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