#AA42E5#AA42E5

#AA42E5 is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 59.6% C 0.238 H 310.2°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AA42E5
RGBrgb(170, 66, 229)
HSLhsl(278, 76%, 58%)
HSVhsv(278, 71%, 90%)
CMYKcmyk(25.8%, 71.2%, 0%, 10.2%)
CIE-LABlab(49.62, 67.40, -64.19)
CIE-LCHlch(49.62, 93.07, 316.40°)
OKLaboklab(59.56% 0.1537 -0.1817)
OKLCHoklch(59.56% 0.238 310.2)
XYZxyz(32.6659, 18.1003, 75.8865)
Luminance0.1810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42E5 #7DE542
analogous
#5842E5 #AA42E5 #E542CF
triadic
#AA42E5 #E5AA42 #42E5AA
tetradic
#AA42E5 #E55842 #7DE542 #42CFE5
square
#AA42E5 #E55842 #7DE542 #42CFE5
split-complementary
#AA42E5 #CFE542 #42E558
monochromatic
#681598 #8D1CCE #AA42E5 #C278EC #DAAEF4

Accessibility & contrast

On white

4.55
#AA42E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#AA42E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA42E5
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42E5#FFFFFF#000000##000000
##AA42E51.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#2278E2
Tritanopia (blue-blind)
#A26790
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #aa42e5;
/* rgb */ color: rgb(170, 66, 229);
/* oklch */ color: oklch(59.6% 0.238 310.2);
Tailwind
colors: {
  custom: {
    50: '#c87fee',
    500: '#aa42e5',
    950: '#000000',
  },
}
SCSS
$custom: #aa42e5;
$custom-light: #c87fee;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42e5",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 278.282,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59561,
    "c": 0.23801,
    "h": 310.2
  },
  "luminance": 0.181
}

Semantic roles & 50–950 ramp

primary
#AA42E5
secondary
#B8E2A1
accent
#F2357A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AA42E5

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

Preview Lab → · Contrast checker → · Palette generator →

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