#A340D2#A340D2

#A340D2 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.2% C 0.220 H 312.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#A340D2
RGBrgb(163, 64, 210)
HSLhsl(281, 62%, 54%)
HSVhsv(281, 70%, 82%)
CMYKcmyk(22.4%, 69.5%, 0%, 17.6%)
CIE-LABlab(47.11, 62.88, -57.45)
CIE-LCHlch(47.11, 85.18, 317.58°)
OKLaboklab(57.18% 0.1492 -0.1622)
OKLCHoklch(57.18% 0.22 312.6)
XYZxyz(28.5684, 16.1073, 62.5644)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340D2 #6FD240
analogous
#5A40D2 #A340D2 #D240B8
triadic
#A340D2 #D2A340 #40D2A3
tetradic
#A340D2 #D25A40 #6FD240 #40B8D2
square
#A340D2 #D25A40 #6FD240 #40B8D2
split-complementary
#A340D2 #B8D240 #40D25A
monochromatic
#5D1D7B #8229AC #A340D2 #BB72DE #D3A3E9

Accessibility & contrast

On white

4.97
#A340D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#A340D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340D2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340D2#FFFFFF#000000##FFFFFF
##A340D21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#3272CF
Tritanopia (blue-blind)
#9E5F85
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a340d2;
/* rgb */ color: rgb(163, 64, 210);
/* oklch */ color: oklch(57.2% 0.220 312.6);
Tailwind
colors: {
  custom: {
    50: '#c27de1',
    500: '#a340d2',
    950: '#000000',
  },
}
SCSS
$custom: #a340d2;
$custom-light: #c27de1;
$custom-dark: #000000;
JSON
{
  "hex": "#a340d2",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 280.685,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.57181,
    "c": 0.22032,
    "h": 312.6
  },
  "luminance": 0.16106
}

Semantic roles & 50–950 ramp

primary
#A340D2
secondary
#ACD698
accent
#E54377
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A340D2

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

Preview Lab → · Contrast checker → · Palette generator →

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