#AA42CF#AA42CF

#AA42CF is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.218 H 315.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AA42CF
RGBrgb(170, 66, 207)
HSLhsl(284, 59%, 54%)
HSVhsv(284, 68%, 81%)
CMYKcmyk(17.9%, 68.1%, 0%, 18.8%)
CIE-LABlab(48.20, 62.92, -53.94)
CIE-LCHlch(48.20, 82.88, 319.39°)
OKLaboklab(58.09% 0.156 -0.1517)
OKLCHoklch(58.09% 0.218 315.8)
XYZxyz(29.7865, 16.9486, 60.7218)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42CF #67CF42
analogous
#6342CF #AA42CF #CF42AE
triadic
#AA42CF #CFAA42 #42CFAA
tetradic
#AA42CF #CF6342 #67CF42 #42AECF
square
#AA42CF #CF6342 #67CF42 #42AECF
split-complementary
#AA42CF #AECF42 #42CF63
monochromatic
#611F78 #882BA9 #AA42CF #C073DB #D6A4E8

Accessibility & contrast

On white

4.78
#AA42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AA42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42CF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42CF#FFFFFF#000000##FFFFFF
##AA42CF1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#4175CC
Tritanopia (blue-blind)
#A75E84
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #aa42cf;
/* rgb */ color: rgb(170, 66, 207);
/* oklch */ color: oklch(58.1% 0.218 315.8);
Tailwind
colors: {
  custom: {
    50: '#c77ede',
    500: '#aa42cf',
    950: '#000000',
  },
}
SCSS
$custom: #aa42cf;
$custom-light: #c77ede;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42cf",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 284.255,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58094,
    "c": 0.21756,
    "h": 315.8
  },
  "luminance": 0.16947
}

Semantic roles & 50–950 ramp

primary
#AA42CF
secondary
#A8D598
accent
#E3456E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AA42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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