#AA42C7#AA42C7

#AA42C7 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.210 H 318.1°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AA42C7
RGBrgb(170, 66, 199)
HSLhsl(287, 54%, 52%)
HSVhsv(287, 67%, 78%)
CMYKcmyk(14.6%, 66.8%, 0%, 22%)
CIE-LABlab(47.71, 61.35, -50.11)
CIE-LCHlch(47.71, 79.21, 320.76°)
OKLaboklab(57.59% 0.1564 -0.1404)
OKLCHoklch(57.59% 0.21 318.1)
XYZxyz(28.8331, 16.5672, 55.7008)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42C7 #5FC742
analogous
#6742C7 #AA42C7 #C742A2
triadic
#AA42C7 #C7AA42 #42C7AA
tetradic
#AA42C7 #C76742 #5FC742 #42A2C7
square
#AA42C7 #C76742 #5FC742 #42A2C7
split-complementary
#AA42C7 #A2C742 #42C767
monochromatic
#5D216E #852F9D #AA42C7 #BF71D5 #D4A0E3

Accessibility & contrast

On white

4.87
#AA42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AA42C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42C7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42C7#FFFFFF#000000##FFFFFF
##AA42C71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056ACB
Deuteranopia (green-blind)
#4875C4
Tritanopia (blue-blind)
#A95B7F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa42c7;
/* rgb */ color: rgb(170, 66, 199);
/* oklch */ color: oklch(57.6% 0.210 318.1);
Tailwind
colors: {
  custom: {
    50: '#c77ed9',
    500: '#aa42c7',
    950: '#000000',
  },
}
SCSS
$custom: #aa42c7;
$custom-light: #c77ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42c7",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 286.917,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57591,
    "c": 0.21022,
    "h": 318.1
  },
  "luminance": 0.16566
}

Semantic roles & 50–950 ramp

primary
#AA42C7
secondary
#A2D095
accent
#DE4A6A
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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