#AA42B3#AA42B3

#AA42B3 is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.192 H 324.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AA42B3
RGBrgb(170, 66, 179)
HSLhsl(295, 46%, 48%)
HSVhsv(295, 63%, 70%)
CMYKcmyk(5%, 63.1%, 0%, 29.8%)
CIE-LABlab(46.58, 57.58, -40.27)
CIE-LCHlch(46.58, 70.26, 325.03°)
OKLaboklab(56.41% 0.1564 -0.1117)
OKLCHoklch(56.41% 0.192 324.5)
XYZxyz(26.6618, 15.6987, 44.2649)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42B3 #4BB342
analogous
#7142B3 #AA42B3 #B34283
triadic
#AA42B3 #B3AA42 #42B3AA
tetradic
#AA42B3 #B37142 #4BB342 #4283B3
square
#AA42B3 #B37142 #4BB342 #4283B3
split-complementary
#AA42B3 #83B342 #42B371
monochromatic
#55215A #803286 #AA42B3 #C16AC8 #D397D9

Accessibility & contrast

On white

5.07
#AA42B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AA42B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42B3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42B3#FFFFFF#000000##FFFFFF
##AA42B31.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B6
Deuteranopia (green-blind)
#5573B0
Tritanopia (blue-blind)
#AD5375
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa42b3;
/* rgb */ color: rgb(170, 66, 179);
/* oklch */ color: oklch(56.4% 0.192 324.5);
Tailwind
colors: {
  custom: {
    50: '#c67eca',
    500: '#aa42b3',
    950: '#000000',
  },
}
SCSS
$custom: #aa42b3;
$custom-light: #c67eca;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42b3",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 295.221,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56408,
    "c": 0.19222,
    "h": 324.5
  },
  "luminance": 0.15697
}

Semantic roles & 50–950 ramp

primary
#AA42B3
secondary
#91C48C
accent
#D6525D
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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