#A42AAA#A42AAA

#A42AAA is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.7% C 0.211 H 326.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#A42AAA
RGBrgb(164, 42, 170)
HSLhsl(297, 60%, 42%)
HSVhsv(297, 75%, 67%)
CMYKcmyk(3.5%, 75.3%, 0%, 33.3%)
CIE-LABlab(41.93, 63.66, -42.40)
CIE-LCHlch(41.93, 76.49, 326.34°)
OKLaboklab(52.72% 0.1747 -0.1179)
OKLCHoklch(52.72% 0.211 326)
XYZxyz(23.3930, 12.4523, 39.1938)
Luminance0.1245 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42AAA #30AA2A
analogous
#642AAA #A42AAA #AA2A70
triadic
#A42AAA #AAA42A #2AAAA4
tetradic
#A42AAA #AA642A #30AA2A #2A70AA
square
#A42AAA #AA642A #30AA2A #2A70AA
split-complementary
#A42AAA #70AA2A #2AAA64
monochromatic
#451248 #751E79 #A42AAA #C941D0 #D772DC

Accessibility & contrast

On white

6.02
#A42AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#A42AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42AAA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42AAA#FFFFFF#000000##FFFFFF
##A42AAA1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#4868A7
Tritanopia (blue-blind)
#A84069
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42aaa;
/* rgb */ color: rgb(164, 42, 170);
/* oklch */ color: oklch(52.7% 0.211 326.0);
Tailwind
colors: {
  custom: {
    50: '#c371c4',
    500: '#a42aaa',
    950: '#000000',
  },
}
SCSS
$custom: #a42aaa;
$custom-light: #c371c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a42aaa",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 297.188,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52717,
    "c": 0.21076,
    "h": 326
  },
  "luminance": 0.12451
}

Semantic roles & 50–950 ramp

primary
#A42AAA
secondary
#70C36C
accent
#E4444C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A42AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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