#A342A8#A342A8

#A342A8 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.8% C 0.179 H 325.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#A342A8
RGBrgb(163, 66, 168)
HSLhsl(297, 44%, 46%)
HSVhsv(297, 61%, 66%)
CMYKcmyk(3%, 60.7%, 0%, 34.1%)
CIE-LABlab(44.96, 53.81, -36.41)
CIE-LCHlch(44.96, 64.97, 325.91°)
OKLaboklab(54.83% 0.1477 -0.1007)
OKLCHoklch(54.83% 0.179 325.7)
XYZxyz(24.1198, 14.5115, 38.5688)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A342A8 #47A842
analogous
#7042A8 #A342A8 #A8427A
triadic
#A342A8 #A8A342 #42A8A3
tetradic
#A342A8 #A87042 #47A842 #427AA8
square
#A342A8 #A87042 #47A842 #427AA8
split-complementary
#A342A8 #7AA842 #42A870
monochromatic
#4E1F50 #78317C #A342A8 #BE65C2 #D091D4

Accessibility & contrast

On white

5.38
#A342A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#A342A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A342A8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A342A8#FFFFFF#000000##FFFFFF
##A342A81.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3363AB
Deuteranopia (green-blind)
#566FA5
Tritanopia (blue-blind)
#A7506F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a342a8;
/* rgb */ color: rgb(163, 66, 168);
/* oklch */ color: oklch(54.8% 0.179 325.7);
Tailwind
colors: {
  custom: {
    50: '#c17dc2',
    500: '#a342a8',
    950: '#000000',
  },
}
SCSS
$custom: #a342a8;
$custom-light: #c17dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a342a8",
  "rgb": {
    "r": 163,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 297.059,
    "s": 43.59,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54834,
    "c": 0.17877,
    "h": 325.7
  },
  "luminance": 0.1451
}

Semantic roles & 50–950 ramp

primary
#A342A8
secondary
#8ABF87
accent
#D3545B
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #A342A8

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

Preview Lab → · Contrast checker → · Palette generator →

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