#A340CF#A340CF

#A340CF is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.0% C 0.217 H 313.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#A340CF
RGBrgb(163, 64, 207)
HSLhsl(282, 60%, 53%)
HSVhsv(282, 69%, 81%)
CMYKcmyk(21.3%, 69.1%, 0%, 18.8%)
CIE-LABlab(46.92, 62.27, -56.04)
CIE-LCHlch(46.92, 83.77, 318.01°)
OKLaboklab(56.98% 0.1494 -0.158)
OKLCHoklch(56.98% 0.217 313.4)
XYZxyz(28.1982, 15.9592, 60.6144)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340CF #6CCF40
analogous
#5B40CF #A340CF #CF40B4
triadic
#A340CF #CFA340 #40CFA3
tetradic
#A340CF #CF5B40 #6CCF40 #40B4CF
square
#A340CF #CF5B40 #6CCF40 #40B4CF
split-complementary
#A340CF #B4CF40 #40CF5B
monochromatic
#5B1E77 #812AA8 #A340CF #BB71DB #D2A2E8

Accessibility & contrast

On white

5.01
#A340CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#A340CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340CF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340CF#FFFFFF#000000##FFFFFF
##A340CF1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#3671CC
Tritanopia (blue-blind)
#9F5E83
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a340cf;
/* rgb */ color: rgb(163, 64, 207);
/* oklch */ color: oklch(57.0% 0.217 313.4);
Tailwind
colors: {
  custom: {
    50: '#c27dde',
    500: '#a340cf',
    950: '#000000',
  },
}
SCSS
$custom: #a340cf;
$custom-light: #c27dde;
$custom-dark: #000000;
JSON
{
  "hex": "#a340cf",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 281.538,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56981,
    "c": 0.21749,
    "h": 313.4
  },
  "luminance": 0.15958
}

Semantic roles & 50–950 ramp

primary
#A340CF
secondary
#AAD497
accent
#E34575
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A340CF

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

Preview Lab → · Contrast checker → · Palette generator →

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