#A340C7#A340C7

#A340C7 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.5% C 0.210 H 315.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#A340C7
RGBrgb(163, 64, 199)
HSLhsl(284, 55%, 52%)
HSVhsv(284, 68%, 78%)
CMYKcmyk(18.1%, 67.8%, 0%, 22%)
CIE-LABlab(46.42, 60.64, -52.24)
CIE-LCHlch(46.42, 80.04, 319.26°)
OKLaboklab(56.46% 0.1501 -0.1469)
OKLCHoklch(56.46% 0.21 315.6)
XYZxyz(27.2448, 15.5778, 55.5934)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340C7 #64C740
analogous
#6040C7 #A340C7 #C740A8
triadic
#A340C7 #C7A340 #40C7A3
tetradic
#A340C7 #C76040 #64C740 #40A8C7
square
#A340C7 #C76040 #64C740 #40A8C7
split-complementary
#A340C7 #A8C740 #40C760
monochromatic
#58206D #7F2E9C #A340C7 #BA6FD5 #D19FE3

Accessibility & contrast

On white

5.10
#A340C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#A340C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340C7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340C7#FFFFFF#000000##FFFFFF
##A340C71.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#3E71C4
Tritanopia (blue-blind)
#A05A7F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a340c7;
/* rgb */ color: rgb(163, 64, 199);
/* oklch */ color: oklch(56.5% 0.210 315.6);
Tailwind
colors: {
  custom: {
    50: '#c27cd9',
    500: '#a340c7',
    950: '#000000',
  },
}
SCSS
$custom: #a340c7;
$custom-light: #c27cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a340c7",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 284,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56458,
    "c": 0.20999,
    "h": 315.6
  },
  "luminance": 0.15577
}

Semantic roles & 50–950 ramp

primary
#A340C7
secondary
#A4CF94
accent
#DE4A71
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A340C7

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

Preview Lab → · Contrast checker → · Palette generator →

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