#A340CA#A340CA

#A340CA is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.7% C 0.213 H 314.8°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A340CA
RGBrgb(163, 64, 202)
HSLhsl(283, 57%, 52%)
HSVhsv(283, 68%, 79%)
CMYKcmyk(19.3%, 68.3%, 0%, 20.8%)
CIE-LABlab(46.60, 61.25, -53.67)
CIE-LCHlch(46.60, 81.44, 318.77°)
OKLaboklab(56.65% 0.1499 -0.1511)
OKLCHoklch(56.65% 0.213 314.8)
XYZxyz(27.5966, 15.7185, 57.4460)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340CA #67CA40
analogous
#5E40CA #A340CA #CA40AC
triadic
#A340CA #CAA340 #40CAA3
tetradic
#A340CA #CA5E40 #67CA40 #40ACCA
square
#A340CA #CA5E40 #67CA40 #40ACCA
split-complementary
#A340CA #ACCA40 #40CA5E
monochromatic
#591F70 #802CA0 #A340CA #BA70D7 #D1A0E5

Accessibility & contrast

On white

5.07
#A340CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#A340CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340CA
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340CA#FFFFFF#000000##FFFFFF
##A340CA1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#3B71C7
Tritanopia (blue-blind)
#A05C80
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a340ca;
/* rgb */ color: rgb(163, 64, 202);
/* oklch */ color: oklch(56.7% 0.213 314.8);
Tailwind
colors: {
  custom: {
    50: '#c27ddb',
    500: '#a340ca',
    950: '#000000',
  },
}
SCSS
$custom: #a340ca;
$custom-light: #c27ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a340ca",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 283.043,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.56652,
    "c": 0.2128,
    "h": 314.8
  },
  "luminance": 0.15718
}

Semantic roles & 50–950 ramp

primary
#A340CA
secondary
#A6D195
accent
#E04873
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A340CA

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

Preview Lab → · Contrast checker → · Palette generator →

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