#A340AF#A340AF

#A340AF is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.0% C 0.188 H 323.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#A340AF
RGBrgb(163, 64, 175)
HSLhsl(294, 46%, 47%)
HSVhsv(294, 63%, 69%)
CMYKcmyk(6.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(45.01, 55.98, -40.46)
CIE-LCHlch(45.01, 69.08, 324.14°)
OKLaboklab(54.99% 0.1505 -0.1125)
OKLCHoklch(54.99% 0.188 323.2)
XYZxyz(24.6748, 14.5498, 42.0578)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340AF #4CAF40
analogous
#6C40AF #A340AF #AF4083
triadic
#A340AF #AFA340 #40AFA3
tetradic
#A340AF #AF6C40 #4CAF40 #4083AF
square
#A340AF #AF6C40 #4CAF40 #4083AF
split-complementary
#A340AF #83AF40 #40AF6C
monochromatic
#501F55 #793082 #A340AF #BC65C7 #D092D7

Accessibility & contrast

On white

5.37
#A340AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#A340AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340AF
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340AF#FFFFFF#000000##FFFFFF
##A340AF1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2963B2
Deuteranopia (green-blind)
#506EAC
Tritanopia (blue-blind)
#A65172
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a340af;
/* rgb */ color: rgb(163, 64, 175);
/* oklch */ color: oklch(55.0% 0.188 323.2);
Tailwind
colors: {
  custom: {
    50: '#c17cc7',
    500: '#a340af',
    950: '#000000',
  },
}
SCSS
$custom: #a340af;
$custom-light: #c17cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#a340af",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 293.514,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54994,
    "c": 0.18789,
    "h": 323.2
  },
  "luminance": 0.14548
}

Semantic roles & 50–950 ramp

primary
#A340AF
secondary
#8FC388
accent
#D65260
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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