#AC7AFE#AC7AFE

#AC7AFE is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.8% C 0.190 H 298.8°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#AC7AFE
RGBrgb(172, 122, 254)
HSLhsl(263, 99%, 74%)
HSVhsv(263, 52%, 100%)
CMYKcmyk(32.3%, 52%, 0%, 0.4%)
CIE-LABlab(61.52, 46.27, -58.99)
CIE-LCHlch(61.52, 74.97, 308.11°)
OKLaboklab(68.75% 0.0916 -0.1666)
OKLCHoklch(68.75% 0.19 298.8)
XYZxyz(41.8579, 29.8451, 97.3021)
Luminance0.2984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC7AFE #CCFE7A
analogous
#7A8AFE #AC7AFE #EE7AFE
triadic
#AC7AFE #FEAC7A #7AFEAC
tetradic
#AC7AFE #FE7A8A #CCFE7A #7AFEEE
square
#AC7AFE #FE7A8A #CCFE7A #7AFEEE
split-complementary
#AC7AFE #FEEE7A #8AFE7A
monochromatic
#6102FC #863DFE #AC7AFE #D2B7FE #ECE1FF

Accessibility & contrast

On white

3.01
#AC7AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#AC7AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC7AFE
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC7AFE#FFFFFF#000000##000000
##AC7AFE1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4895FF
Deuteranopia (green-blind)
#5693FB
Tritanopia (blue-blind)
#9B94B1
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ac7afe;
/* rgb */ color: rgb(172, 122, 254);
/* oklch */ color: oklch(68.8% 0.190 298.8);
Tailwind
colors: {
  custom: {
    50: '#c8a2ff',
    500: '#ac7afe',
    950: '#000000',
  },
}
SCSS
$custom: #ac7afe;
$custom-light: #c8a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ac7afe",
  "rgb": {
    "r": 172,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 262.727,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.6875,
    "c": 0.19009,
    "h": 298.8
  },
  "luminance": 0.29845
}

Semantic roles & 50–950 ramp

primary
#AC7AFE
secondary
#EAF7D4
accent
#E6008F
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AC7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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