#AC40E3#AC40E3

#AC40E3 is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 59.5% C 0.239 H 311.5°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AC40E3
RGBrgb(172, 64, 227)
HSLhsl(280, 74%, 57%)
HSVhsv(280, 72%, 89%)
CMYKcmyk(24.2%, 71.8%, 0%, 11%)
CIE-LABlab(49.48, 68.16, -63.27)
CIE-LCHlch(49.48, 93.00, 317.13°)
OKLaboklab(59.48% 0.1584 -0.179)
OKLCHoklch(59.48% 0.239 311.5)
XYZxyz(32.7092, 17.9843, 74.4064)
Luminance0.1798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC40E3 #77E340
analogous
#5B40E3 #AC40E3 #E340C8
triadic
#AC40E3 #E3AC40 #40E3AC
tetradic
#AC40E3 #E35B40 #77E340 #40C8E3
square
#AC40E3 #E35B40 #77E340 #40C8E3
split-complementary
#AC40E3 #C8E340 #40E35B
monochromatic
#691693 #8F1DC8 #AC40E3 #C375EB #DAABF3

Accessibility & contrast

On white

4.57
#AC40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#AC40E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC40E3
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC40E3#FFFFFF#000000##000000
##AC40E31.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E8
Deuteranopia (green-blind)
#2778DF
Tritanopia (blue-blind)
#A5648E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ac40e3;
/* rgb */ color: rgb(172, 64, 227);
/* oklch */ color: oklch(59.5% 0.239 311.5);
Tailwind
colors: {
  custom: {
    50: '#ca7eed',
    500: '#ac40e3',
    950: '#000000',
  },
}
SCSS
$custom: #ac40e3;
$custom-light: #ca7eed;
$custom-dark: #000000;
JSON
{
  "hex": "#ac40e3",
  "rgb": {
    "r": 172,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 279.755,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59475,
    "c": 0.23899,
    "h": 311.5
  },
  "luminance": 0.17983
}

Semantic roles & 50–950 ramp

primary
#AC40E3
secondary
#B5E19E
accent
#F13776
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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