#8340A2#8340A2

#8340A2 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.0% C 0.160 H 313.7°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8340A2
RGBrgb(131, 64, 162)
HSLhsl(281, 43%, 44%)
HSVhsv(281, 60%, 64%)
CMYKcmyk(19.1%, 60.5%, 0%, 36.5%)
CIE-LABlab(39.75, 45.30, -41.38)
CIE-LCHlch(39.75, 61.36, 317.59°)
OKLaboklab(50% 0.1107 -0.1161)
OKLCHoklch(50% 0.16 313.7)
XYZxyz(17.7140, 11.1012, 35.3850)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340A2 #5FA240
analogous
#5240A2 #8340A2 #A24090
triadic
#8340A2 #A28340 #40A283
tetradic
#8340A2 #A25240 #5FA240 #4090A2
square
#8340A2 #A25240 #5FA240 #4090A2
split-complementary
#8340A2 #90A240 #40A252
monochromatic
#3C1D4A #602F76 #8340A2 #A15FC0 #BB8BD1

Accessibility & contrast

On white

6.52
#8340A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8340A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340A2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340A2#FFFFFF#000000##FFFFFF
##8340A21.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA5
Deuteranopia (green-blind)
#3C5FA0
Tritanopia (blue-blind)
#80516B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8340a2;
/* rgb */ color: rgb(131, 64, 162);
/* oklch */ color: oklch(50.0% 0.160 313.7);
Tailwind
colors: {
  custom: {
    50: '#aa78be',
    500: '#8340a2',
    950: '#000000',
  },
}
SCSS
$custom: #8340a2;
$custom-light: #aa78be;
$custom-dark: #000000;
JSON
{
  "hex": "#8340a2",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 281.02,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49997,
    "c": 0.16042,
    "h": 313.7
  },
  "luminance": 0.11101
}

Semantic roles & 50–950 ramp

primary
#8340A2
secondary
#94BC82
accent
#D3557D
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #8340A2

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

Preview Lab → · Contrast checker → · Palette generator →

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