#AC42E2#AC42E2

#AC42E2 is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.6% C 0.236 H 311.6°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AC42E2
RGBrgb(172, 66, 226)
HSLhsl(280, 73%, 57%)
HSVhsv(280, 71%, 89%)
CMYKcmyk(23.9%, 70.8%, 0%, 11.4%)
CIE-LABlab(49.69, 67.17, -62.36)
CIE-LCHlch(49.69, 91.65, 317.12°)
OKLaboklab(59.6% 0.1566 -0.1763)
OKLCHoklch(59.6% 0.236 311.6)
XYZxyz(32.6864, 18.1589, 73.7199)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC42E2 #78E242
analogous
#5C42E2 #AC42E2 #E242C8
triadic
#AC42E2 #E2AC42 #42E2AC
tetradic
#AC42E2 #E25C42 #78E242 #42C8E2
square
#AC42E2 #E25C42 #78E242 #42C8E2
split-complementary
#AC42E2 #C8E242 #42E25C
monochromatic
#691793 #8F1FC8 #AC42E2 #C377EA #DBACF2

Accessibility & contrast

On white

4.53
#AC42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AC42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AC42E2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC42E2#FFFFFF#000000##000000
##AC42E21.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#2C78DF
Tritanopia (blue-blind)
#A5658E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ac42e2;
/* rgb */ color: rgb(172, 66, 226);
/* oklch */ color: oklch(59.6% 0.236 311.6);
Tailwind
colors: {
  custom: {
    50: '#c97fec',
    500: '#ac42e2',
    950: '#000000',
  },
}
SCSS
$custom: #ac42e2;
$custom-light: #c97fec;
$custom-dark: #000000;
JSON
{
  "hex": "#ac42e2",
  "rgb": {
    "r": 172,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 279.75,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59604,
    "c": 0.23581,
    "h": 311.6
  },
  "luminance": 0.18158
}

Semantic roles & 50–950 ramp

primary
#AC42E2
secondary
#B5E09F
accent
#F03876
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AC42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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