#AA42BB#AA42BB

#AA42BB is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.9% C 0.199 H 321.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AA42BB
RGBrgb(170, 66, 187)
HSLhsl(292, 48%, 50%)
HSVhsv(292, 65%, 73%)
CMYKcmyk(9.1%, 64.7%, 0%, 26.7%)
CIE-LABlab(47.02, 59.06, -44.25)
CIE-LCHlch(47.02, 73.80, 323.16°)
OKLaboklab(56.87% 0.1566 -0.1233)
OKLCHoklch(56.87% 0.199 321.8)
XYZxyz(27.4945, 16.0318, 48.6503)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42BB #53BB42
analogous
#6D42BB #AA42BB #BB4290
triadic
#AA42BB #BBAA42 #42BBAA
tetradic
#AA42BB #BB6D42 #53BB42 #4290BB
square
#AA42BB #BB6D42 #53BB42 #4290BB
split-complementary
#AA42BB #90BB42 #42BB6D
monochromatic
#582261 #81328E #AA42BB #BF6ECC #D39CDC

Accessibility & contrast

On white

4.99
#AA42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AA42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42BB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42BB#FFFFFF#000000##FFFFFF
##AA42BB1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#5173B8
Tritanopia (blue-blind)
#AC5679
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa42bb;
/* rgb */ color: rgb(170, 66, 187);
/* oklch */ color: oklch(56.9% 0.199 321.8);
Tailwind
colors: {
  custom: {
    50: '#c67ed0',
    500: '#aa42bb',
    950: '#000000',
  },
}
SCSS
$custom: #aa42bb;
$custom-light: #c67ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42bb",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 291.57,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56868,
    "c": 0.19933,
    "h": 321.8
  },
  "luminance": 0.1603
}

Semantic roles & 50–950 ramp

primary
#AA42BB
secondary
#99C891
accent
#D75063
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AA42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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