#A340CD#A340CD

#A340CD is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.216 H 313.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#A340CD
RGBrgb(163, 64, 205)
HSLhsl(282, 59%, 53%)
HSVhsv(282, 69%, 80%)
CMYKcmyk(20.5%, 68.8%, 0%, 19.6%)
CIE-LABlab(46.79, 61.86, -55.10)
CIE-LCHlch(46.79, 82.84, 318.31°)
OKLaboklab(56.85% 0.1496 -0.1552)
OKLCHoklch(56.85% 0.216 313.9)
XYZxyz(27.9552, 15.8620, 59.3348)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340CD #6ACD40
analogous
#5D40CD #A340CD #CD40B0
triadic
#A340CD #CDA340 #40CDA3
tetradic
#A340CD #CD5D40 #6ACD40 #40B0CD
square
#A340CD #CD5D40 #6ACD40 #40B0CD
split-complementary
#A340CD #B0CD40 #40CD5D
monochromatic
#5B1E74 #802BA5 #A340CD #BA71DA #D2A1E6

Accessibility & contrast

On white

5.03
#A340CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#A340CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340CD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340CD#FFFFFF#000000##FFFFFF
##A340CD1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#3871CA
Tritanopia (blue-blind)
#9F5D82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a340cd;
/* rgb */ color: rgb(163, 64, 205);
/* oklch */ color: oklch(56.8% 0.216 313.9);
Tailwind
colors: {
  custom: {
    50: '#c27ddd',
    500: '#a340cd',
    950: '#000000',
  },
}
SCSS
$custom: #a340cd;
$custom-light: #c27ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#a340cd",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 282.128,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56848,
    "c": 0.21561,
    "h": 313.9
  },
  "luminance": 0.15861
}

Semantic roles & 50–950 ramp

primary
#A340CD
secondary
#A8D396
accent
#E24674
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A340CD

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

Preview Lab → · Contrast checker → · Palette generator →

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