#AC40EF#AC40EF

#AC40EF is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 60.3% C 0.250 H 308.8°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AC40EF
RGBrgb(172, 64, 239)
HSLhsl(277, 85%, 59%)
HSVhsv(277, 73%, 94%)
CMYKcmyk(28%, 73.2%, 0%, 6.3%)
CIE-LABlab(50.30, 70.63, -68.71)
CIE-LCHlch(50.30, 98.54, 315.79°)
OKLaboklab(60.32% 0.1565 -0.1949)
OKLCHoklch(60.32% 0.25 308.8)
XYZxyz(34.4235, 18.6700, 83.4349)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40EF #83EF40
analogous
#5540EF #AC40EF #EF40DA
triadic
#AC40EF #EFAC40 #40EFAC
tetradic
#AC40EF #EF5540 #83EF40 #40DAEF
square
#AC40EF #EF5540 #83EF40 #40DAEF
split-complementary
#AC40EF #DAEF40 #40EF55
monochromatic
#6C0EA7 #9113DF #AC40EF #C578F4 #DDB1F8

Accessibility & contrast

On white

4.44
#AC40EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AC40EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC40EF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40EF#FFFFFF#000000##000000
##AC40EF1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074F4
Deuteranopia (green-blind)
#0079EB
Tritanopia (blue-blind)
#A26A95
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ac40ef;
/* rgb */ color: rgb(172, 64, 239);
/* oklch */ color: oklch(60.3% 0.250 308.8);
Tailwind
colors: {
  custom: {
    50: '#ca7ff5',
    500: '#ac40ef',
    950: '#000000',
  },
}
SCSS
$custom: #ac40ef;
$custom-light: #ca7ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40ef",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 239
  },
  "hsl": {
    "h": 277.029,
    "s": 84.541,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60317,
    "c": 0.25,
    "h": 308.8
  },
  "luminance": 0.18669
}

Semantic roles & 50–950 ramp

primary
#AC40EF
secondary
#BDE7A3
accent
#FB2D7C
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B17
muted
#837C85

Preview Lab

Preview with #AC40EF

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

Preview Lab → · Contrast checker → · Palette generator →

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