#A42AA6#A42AA6

#A42AA6 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.208 H 327.3°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#A42AA6
RGBrgb(164, 42, 166)
HSLhsl(299, 60%, 41%)
HSVhsv(299, 75%, 65%)
CMYKcmyk(1.2%, 74.7%, 0%, 34.9%)
CIE-LABlab(41.69, 62.99, -40.38)
CIE-LCHlch(41.69, 74.82, 327.34°)
OKLaboklab(52.48% 0.1748 -0.1121)
OKLCHoklch(52.48% 0.208 327.3)
XYZxyz(23.0204, 12.3033, 37.2313)
Luminance0.1230 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42AA6 #2CA62A
analogous
#662AA6 #A42AA6 #A62A6A
triadic
#A42AA6 #A6A42A #2AA6A4
tetradic
#A42AA6 #A6662A #2CA62A #2A6AA6
square
#A42AA6 #A6662A #2CA62A #2A6AA6
split-complementary
#A42AA6 #6AA62A #2AA666
monochromatic
#431144 #741E75 #A42AA6 #CC3FCE #D970DB

Accessibility & contrast

On white

6.07
#A42AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#A42AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42AA6
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42AA6#FFFFFF#000000##FFFFFF
##A42AA61.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0958A9
Deuteranopia (green-blind)
#4A68A3
Tritanopia (blue-blind)
#A93E66
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42aa6;
/* rgb */ color: rgb(164, 42, 166);
/* oklch */ color: oklch(52.5% 0.208 327.3);
Tailwind
colors: {
  custom: {
    50: '#c371c1',
    500: '#a42aa6',
    950: '#000000',
  },
}
SCSS
$custom: #a42aa6;
$custom-light: #c371c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a42aa6",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 299.032,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52477,
    "c": 0.20764,
    "h": 327.3
  },
  "luminance": 0.12302
}

Semantic roles & 50–950 ramp

primary
#A42AA6
secondary
#6BC26A
accent
#E34548
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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