#A340BD#A340BD

#A340BD is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.8% C 0.201 H 318.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A340BD
RGBrgb(163, 64, 189)
HSLhsl(288, 49%, 50%)
HSVhsv(288, 66%, 74%)
CMYKcmyk(13.8%, 66.1%, 0%, 25.9%)
CIE-LABlab(45.81, 58.66, -47.40)
CIE-LCHlch(45.81, 75.42, 321.06°)
OKLaboklab(55.83% 0.1505 -0.1327)
OKLCHoklch(55.83% 0.201 318.6)
XYZxyz(26.1217, 15.1286, 49.6784)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340BD #5ABD40
analogous
#6540BD #A340BD #BD4099
triadic
#A340BD #BDA340 #40BDA3
tetradic
#A340BD #BD6540 #5ABD40 #4099BD
square
#A340BD #BD6540 #5ABD40 #4099BD
split-complementary
#A340BD #99BD40 #40BD65
monochromatic
#542162 #7C318F #A340BD #B96DCD #CF9ADD

Accessibility & contrast

On white

5.22
#A340BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A340BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340BD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340BD#FFFFFF#000000##FFFFFF
##A340BD1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1166C1
Deuteranopia (green-blind)
#4770BA
Tritanopia (blue-blind)
#A35679
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a340bd;
/* rgb */ color: rgb(163, 64, 189);
/* oklch */ color: oklch(55.8% 0.201 318.6);
Tailwind
colors: {
  custom: {
    50: '#c27cd1',
    500: '#a340bd',
    950: '#000000',
  },
}
SCSS
$custom: #a340bd;
$custom-light: #c27cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a340bd",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 287.52,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55828,
    "c": 0.20068,
    "h": 318.6
  },
  "luminance": 0.15127
}

Semantic roles & 50–950 ramp

primary
#A340BD
secondary
#9CC990
accent
#D94F6C
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A340BD

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

Preview Lab → · Contrast checker → · Palette generator →

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