#A340BA#A340BA

#A340BA is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.198 H 319.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#A340BA
RGBrgb(163, 64, 186)
HSLhsl(289, 49%, 49%)
HSVhsv(289, 66%, 73%)
CMYKcmyk(12.4%, 65.6%, 0%, 27.1%)
CIE-LABlab(45.63, 58.08, -45.93)
CIE-LCHlch(45.63, 74.04, 321.66°)
OKLaboklab(55.65% 0.1506 -0.1284)
OKLCHoklch(55.65% 0.198 319.5)
XYZxyz(25.7995, 14.9997, 47.9811)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340BA #57BA40
analogous
#6640BA #A340BA #BA4094
triadic
#A340BA #BAA340 #40BAA3
tetradic
#A340BA #BA6640 #57BA40 #4094BA
square
#A340BA #BA6640 #57BA40 #4094BA
split-complementary
#A340BA #94BA40 #40BA66
monochromatic
#53215F #7B308C #A340BA #BA6BCC #CF99DC

Accessibility & contrast

On white

5.25
#A340BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#A340BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340BA
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340BA#FFFFFF#000000##FFFFFF
##A340BA1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1865BE
Deuteranopia (green-blind)
#496FB7
Tritanopia (blue-blind)
#A35578
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a340ba;
/* rgb */ color: rgb(163, 64, 186);
/* oklch */ color: oklch(55.6% 0.198 319.5);
Tailwind
colors: {
  custom: {
    50: '#c27ccf',
    500: '#a340ba',
    950: '#000000',
  },
}
SCSS
$custom: #a340ba;
$custom-light: #c27ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#a340ba",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 288.689,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55645,
    "c": 0.19791,
    "h": 319.5
  },
  "luminance": 0.14998
}

Semantic roles & 50–950 ramp

primary
#A340BA
secondary
#99C88E
accent
#D84F69
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A340BA

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

Preview Lab → · Contrast checker → · Palette generator →

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