#A340BE#A340BE

#A340BE is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 55.9% C 0.202 H 318.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A340BE
RGBrgb(163, 64, 190)
HSLhsl(287, 50%, 50%)
HSVhsv(287, 66%, 75%)
CMYKcmyk(14.2%, 66.3%, 0%, 25.5%)
CIE-LABlab(45.87, 58.85, -47.89)
CIE-LCHlch(45.87, 75.88, 320.87°)
OKLaboklab(55.89% 0.1505 -0.1341)
OKLCHoklch(55.89% 0.202 318.3)
XYZxyz(26.2306, 15.1722, 50.2520)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340BE #5BBE40
analogous
#6440BE #A340BE #BE409A
triadic
#A340BE #BEA340 #40BEA3
tetradic
#A340BE #BE6440 #5BBE40 #409ABE
square
#A340BE #BE6440 #5BBE40 #409ABE
split-complementary
#A340BE #9ABE40 #40BE64
monochromatic
#542162 #7C3190 #A340BE #B96DCE #CF9BDD

Accessibility & contrast

On white

5.21
#A340BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A340BE
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340BE#FFFFFF#000000##FFFFFF
##A340BE1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E66C2
Deuteranopia (green-blind)
#4670BB
Tritanopia (blue-blind)
#A3577A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a340be;
/* rgb */ color: rgb(163, 64, 190);
/* oklch */ color: oklch(55.9% 0.202 318.3);
Tailwind
colors: {
  custom: {
    50: '#c27cd2',
    500: '#a340be',
    950: '#000000',
  },
}
SCSS
$custom: #a340be;
$custom-light: #c27cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#a340be",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 287.143,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5589,
    "c": 0.2016,
    "h": 318.3
  },
  "luminance": 0.15171
}

Semantic roles & 50–950 ramp

primary
#A340BE
secondary
#9DC990
accent
#D94F6C
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A340BE

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

Preview Lab → · Contrast checker → · Palette generator →

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