#8340AD#8340AD

#8340AD is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.172 H 309.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8340AD
RGBrgb(131, 64, 173)
HSLhsl(277, 46%, 46%)
HSVhsv(277, 63%, 68%)
CMYKcmyk(24.3%, 63%, 0%, 32.2%)
CIE-LABlab(40.43, 47.77, -46.86)
CIE-LCHlch(40.43, 66.92, 315.55°)
OKLaboklab(50.71% 0.1106 -0.1321)
OKLCHoklch(50.71% 0.172 309.9)
XYZxyz(18.7348, 11.5096, 40.7617)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340AD #6AAD40
analogous
#4D40AD #8340AD #AD40A1
triadic
#8340AD #AD8340 #40AD83
tetradic
#8340AD #AD4D40 #6AAD40 #40A1AD
square
#8340AD #AD4D40 #6AAD40 #40A1AD
split-complementary
#8340AD #A1AD40 #40AD4D
monochromatic
#3F1F54 #612F80 #8340AD #A064C6 #BC91D6

Accessibility & contrast

On white

6.36
#8340AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8340AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340AD
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340AD#FFFFFF#000000##FFFFFF
##8340AD1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5CB0
Deuteranopia (green-blind)
#3260AA
Tritanopia (blue-blind)
#7D5570
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8340ad;
/* rgb */ color: rgb(131, 64, 173);
/* oklch */ color: oklch(50.7% 0.172 309.9);
Tailwind
colors: {
  custom: {
    50: '#aa79c6',
    500: '#8340ad',
    950: '#000000',
  },
}
SCSS
$custom: #8340ad;
$custom-light: #aa79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8340ad",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 276.881,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50705,
    "c": 0.17231,
    "h": 309.9
  },
  "luminance": 0.11509
}

Semantic roles & 50–950 ramp

primary
#8340AD
secondary
#9EC287
accent
#D65285
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8340AD

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

Preview Lab → · Contrast checker → · Palette generator →

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