#AA42E2#AA42E2

#AA42E2 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 59.4% C 0.235 H 310.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AA42E2
RGBrgb(170, 66, 226)
HSLhsl(279, 73%, 57%)
HSVhsv(279, 71%, 89%)
CMYKcmyk(24.8%, 70.8%, 0%, 11.4%)
CIE-LABlab(49.42, 66.77, -62.82)
CIE-LCHlch(49.42, 91.68, 316.75°)
OKLaboklab(59.35% 0.1541 -0.1777)
OKLCHoklch(59.35% 0.235 310.9)
XYZxyz(32.2506, 17.9342, 73.6995)
Luminance0.1793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42E2 #7AE242
analogous
#5A42E2 #AA42E2 #E242CA
triadic
#AA42E2 #E2AA42 #42E2AA
tetradic
#AA42E2 #E25A42 #7AE242 #42CAE2
square
#AA42E2 #E25A42 #7AE242 #42CAE2
split-complementary
#AA42E2 #CAE242 #42E25A
monochromatic
#671793 #8D1FC8 #AA42E2 #C277EA #DAACF2

Accessibility & contrast

On white

4.58
#AA42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AA42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA42E2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42E2#FFFFFF#000000##000000
##AA42E21.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#2877DF
Tritanopia (blue-blind)
#A3658E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #aa42e2;
/* rgb */ color: rgb(170, 66, 226);
/* oklch */ color: oklch(59.4% 0.235 310.9);
Tailwind
colors: {
  custom: {
    50: '#c87fec',
    500: '#aa42e2',
    950: '#000000',
  },
}
SCSS
$custom: #aa42e2;
$custom-light: #c87fec;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42e2",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 279,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59354,
    "c": 0.2352,
    "h": 310.9
  },
  "luminance": 0.17933
}

Semantic roles & 50–950 ramp

primary
#AA42E2
secondary
#B6E09F
accent
#F03878
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AA42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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