#A340CE#A340CE

#A340CE is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.217 H 313.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#A340CE
RGBrgb(163, 64, 206)
HSLhsl(282, 59%, 53%)
HSVhsv(282, 69%, 81%)
CMYKcmyk(20.9%, 68.9%, 0%, 19.2%)
CIE-LABlab(46.86, 62.06, -55.57)
CIE-LCHlch(46.86, 83.30, 318.16°)
OKLaboklab(56.91% 0.1495 -0.1566)
OKLCHoklch(56.91% 0.217 313.7)
XYZxyz(28.0763, 15.9104, 59.9726)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340CE #6BCE40
analogous
#5C40CE #A340CE #CE40B2
triadic
#A340CE #CEA340 #40CEA3
tetradic
#A340CE #CE5C40 #6BCE40 #40B2CE
square
#A340CE #CE5C40 #6BCE40 #40B2CE
split-complementary
#A340CE #B2CE40 #40CE5C
monochromatic
#5B1E75 #812BA6 #A340CE #BA71DA #D2A1E7

Accessibility & contrast

On white

5.02
#A340CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#A340CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340CE
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340CE#FFFFFF#000000##FFFFFF
##A340CE1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#3771CB
Tritanopia (blue-blind)
#9F5D82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a340ce;
/* rgb */ color: rgb(163, 64, 206);
/* oklch */ color: oklch(56.9% 0.217 313.7);
Tailwind
colors: {
  custom: {
    50: '#c27dde',
    500: '#a340ce',
    950: '#000000',
  },
}
SCSS
$custom: #a340ce;
$custom-light: #c27dde;
$custom-dark: #000000;
JSON
{
  "hex": "#a340ce",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 281.831,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.21655,
    "h": 313.7
  },
  "luminance": 0.1591
}

Semantic roles & 50–950 ramp

primary
#A340CE
secondary
#A9D496
accent
#E24575
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A340CE

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

Preview Lab → · Contrast checker → · Palette generator →

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