#8340AE#8340AE

#8340AE is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.173 H 309.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8340AE
RGBrgb(131, 64, 174)
HSLhsl(277, 46%, 47%)
HSVhsv(277, 63%, 68%)
CMYKcmyk(24.7%, 63.2%, 0%, 31.8%)
CIE-LABlab(40.49, 48.00, -47.35)
CIE-LCHlch(40.49, 67.42, 315.39°)
OKLaboklab(50.77% 0.1106 -0.1335)
OKLCHoklch(50.77% 0.173 309.6)
XYZxyz(18.8320, 11.5484, 41.2732)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340AE #6BAE40
analogous
#4C40AE #8340AE #AE40A2
triadic
#8340AE #AE8340 #40AE83
tetradic
#8340AE #AE4C40 #6BAE40 #40A2AE
square
#8340AE #AE4C40 #6BAE40 #40A2AE
split-complementary
#8340AE #A2AE40 #40AE4C
monochromatic
#401F55 #613081 #8340AE #A065C6 #BC92D7

Accessibility & contrast

On white

6.35
#8340AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8340AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340AE
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340AE#FFFFFF#000000##FFFFFF
##8340AE1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065DB1
Deuteranopia (green-blind)
#3160AB
Tritanopia (blue-blind)
#7D5671
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8340ae;
/* rgb */ color: rgb(131, 64, 174);
/* oklch */ color: oklch(50.8% 0.173 309.6);
Tailwind
colors: {
  custom: {
    50: '#aa79c7',
    500: '#8340ae',
    950: '#000000',
  },
}
SCSS
$custom: #8340ae;
$custom-light: #aa79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8340ae",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 276.545,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50771,
    "c": 0.1734,
    "h": 309.6
  },
  "luminance": 0.11548
}

Semantic roles & 50–950 ramp

primary
#8340AE
secondary
#9FC288
accent
#D65286
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8340AE

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

Preview Lab → · Contrast checker → · Palette generator →

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