#AA42B7#AA42B7

#AA42B7 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.6% C 0.196 H 323.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AA42B7
RGBrgb(170, 66, 183)
HSLhsl(293, 47%, 49%)
HSVhsv(293, 64%, 72%)
CMYKcmyk(7.1%, 63.9%, 0%, 28.2%)
CIE-LABlab(46.79, 58.31, -42.27)
CIE-LCHlch(46.79, 72.02, 324.06°)
OKLaboklab(56.64% 0.1565 -0.1175)
OKLCHoklch(56.64% 0.196 323.1)
XYZxyz(27.0722, 15.8629, 46.4264)
Luminance0.1586 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42B7 #4FB742
analogous
#7042B7 #AA42B7 #B7428A
triadic
#AA42B7 #B7AA42 #42B7AA
tetradic
#AA42B7 #B77042 #4FB742 #428AB7
square
#AA42B7 #B77042 #4FB742 #428AB7
split-complementary
#AA42B7 #8AB742 #42B770
monochromatic
#56225D #80328A #AA42B7 #C06CCA #D399DA

Accessibility & contrast

On white

5.03
#AA42B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AA42B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42B7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42B7#FFFFFF#000000##FFFFFF
##AA42B71.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2867BB
Deuteranopia (green-blind)
#5373B4
Tritanopia (blue-blind)
#AD5477
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa42b7;
/* rgb */ color: rgb(170, 66, 183);
/* oklch */ color: oklch(56.6% 0.196 323.1);
Tailwind
colors: {
  custom: {
    50: '#c67ecd',
    500: '#aa42b7',
    950: '#000000',
  },
}
SCSS
$custom: #aa42b7;
$custom-light: #c67ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42b7",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 293.333,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56635,
    "c": 0.19576,
    "h": 323.1
  },
  "luminance": 0.15861
}

Semantic roles & 50–950 ramp

primary
#AA42B7
secondary
#95C68F
accent
#D75160
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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