#A42AA5#A42AA5

#A42AA5 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.207 H 327.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#A42AA5
RGBrgb(164, 42, 165)
HSLhsl(300, 59%, 41%)
HSVhsv(300, 75%, 65%)
CMYKcmyk(0.6%, 74.5%, 0%, 35.3%)
CIE-LABlab(41.64, 62.82, -39.88)
CIE-LCHlch(41.64, 74.41, 327.59°)
OKLaboklab(52.42% 0.1748 -0.1106)
OKLCHoklch(52.42% 0.207 327.7)
XYZxyz(22.9290, 12.2667, 36.7501)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42AA5 #2BA52A
analogous
#662AA5 #A42AA5 #A52A68
triadic
#A42AA5 #A5A42A #2AA5A4
tetradic
#A42AA5 #A5662A #2BA52A #2A68A5
square
#A42AA5 #A5662A #2BA52A #2A68A5
split-complementary
#A42AA5 #68A52A #2AA566
monochromatic
#431143 #741E74 #A42AA5 #CD3ECE #D96FDA

Accessibility & contrast

On white

6.08
#A42AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A42AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42AA5
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42AA5#FFFFFF#000000##FFFFFF
##A42AA51.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C58A8
Deuteranopia (green-blind)
#4B68A2
Tritanopia (blue-blind)
#A93E66
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42aa5;
/* rgb */ color: rgb(164, 42, 165);
/* oklch */ color: oklch(52.4% 0.207 327.7);
Tailwind
colors: {
  custom: {
    50: '#c371c0',
    500: '#a42aa5',
    950: '#000000',
  },
}
SCSS
$custom: #a42aa5;
$custom-light: #c371c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a42aa5",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 299.512,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.52418,
    "c": 0.20686,
    "h": 327.7
  },
  "luminance": 0.12265
}

Semantic roles & 50–950 ramp

primary
#A42AA5
secondary
#6AC169
accent
#E34546
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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