#8340A3#8340A3

#8340A3 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.1% C 0.162 H 313.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8340A3
RGBrgb(131, 64, 163)
HSLhsl(281, 44%, 45%)
HSVhsv(281, 61%, 64%)
CMYKcmyk(19.6%, 60.7%, 0%, 36.1%)
CIE-LABlab(39.81, 45.52, -41.89)
CIE-LCHlch(39.81, 61.86, 317.38°)
OKLaboklab(50.06% 0.1108 -0.1175)
OKLCHoklch(50.06% 0.162 313.3)
XYZxyz(17.8032, 11.1369, 35.8550)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340A3 #60A340
analogous
#5240A3 #8340A3 #A34092
triadic
#8340A3 #A38340 #40A383
tetradic
#8340A3 #A35240 #60A340 #4092A3
square
#8340A3 #A35240 #60A340 #4092A3
split-complementary
#8340A3 #92A340 #40A352
monochromatic
#3C1D4B #602F77 #8340A3 #A160C0 #BB8CD2

Accessibility & contrast

On white

6.51
#8340A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8340A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340A3
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340A3#FFFFFF#000000##FFFFFF
##8340A31.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5AA6
Deuteranopia (green-blind)
#3B5FA1
Tritanopia (blue-blind)
#80526B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8340a3;
/* rgb */ color: rgb(131, 64, 163);
/* oklch */ color: oklch(50.1% 0.162 313.3);
Tailwind
colors: {
  custom: {
    50: '#aa78bf',
    500: '#8340a3',
    950: '#000000',
  },
}
SCSS
$custom: #8340a3;
$custom-light: #aa78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8340a3",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 280.606,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5006,
    "c": 0.1615,
    "h": 313.3
  },
  "luminance": 0.11136
}

Semantic roles & 50–950 ramp

primary
#8340A3
secondary
#95BD82
accent
#D3547D
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #8340A3

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

Preview Lab → · Contrast checker → · Palette generator →

#8340A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva