#A340D7#A340D7

#A340D7 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.5% C 0.225 H 311.3°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#A340D7
RGBrgb(163, 64, 215)
HSLhsl(279, 65%, 55%)
HSVhsv(279, 70%, 84%)
CMYKcmyk(24.2%, 70.2%, 0%, 15.7%)
CIE-LABlab(47.44, 63.92, -59.79)
CIE-LCHlch(47.44, 87.52, 316.91°)
OKLaboklab(57.52% 0.1486 -0.169)
OKLCHoklch(57.52% 0.225 311.3)
XYZxyz(29.2011, 16.3603, 65.8964)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340D7 #74D740
analogous
#5840D7 #A340D7 #D740BF
triadic
#A340D7 #D7A340 #40D7A3
tetradic
#A340D7 #D75840 #74D740 #40BFD7
square
#A340D7 #D75840 #74D740 #40BFD7
split-complementary
#A340D7 #BFD740 #40D758
monochromatic
#5E1B81 #8326B4 #A340D7 #BB73E2 #D4A5EC

Accessibility & contrast

On white

4.92
#A340D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#A340D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340D7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340D7#FFFFFF#000000##FFFFFF
##A340D71.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#2B72D4
Tritanopia (blue-blind)
#9C6187
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a340d7;
/* rgb */ color: rgb(163, 64, 215);
/* oklch */ color: oklch(57.5% 0.225 311.3);
Tailwind
colors: {
  custom: {
    50: '#c37de4',
    500: '#a340d7',
    950: '#000000',
  },
}
SCSS
$custom: #a340d7;
$custom-light: #c37de4;
$custom-dark: #000000;
JSON
{
  "hex": "#a340d7",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 279.338,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5752,
    "c": 0.22504,
    "h": 311.3
  },
  "luminance": 0.1636
}

Semantic roles & 50–950 ramp

primary
#A340D7
secondary
#AFD99A
accent
#E83F7A
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A340D7

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

Preview Lab → · Contrast checker → · Palette generator →

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