#8340AC#8340AC

#8340AC is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.6% C 0.171 H 310.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8340AC
RGBrgb(131, 64, 172)
HSLhsl(277, 46%, 46%)
HSVhsv(277, 63%, 67%)
CMYKcmyk(23.8%, 62.8%, 0%, 32.5%)
CIE-LABlab(40.36, 47.54, -46.37)
CIE-LCHlch(40.36, 66.41, 315.72°)
OKLaboklab(50.64% 0.1107 -0.1307)
OKLCHoklch(50.64% 0.171 310.3)
XYZxyz(18.6384, 11.4710, 40.2540)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340AC #69AC40
analogous
#4D40AC #8340AC #AC409F
triadic
#8340AC #AC8340 #40AC83
tetradic
#8340AC #AC4D40 #69AC40 #409FAC
square
#8340AC #AC4D40 #69AC40 #409FAC
split-complementary
#8340AC #9FAC40 #40AC4D
monochromatic
#3F1F53 #612F7F #8340AC #A064C5 #BC91D6

Accessibility & contrast

On white

6.37
#8340AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8340AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340AC
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340AC#FFFFFF#000000##FFFFFF
##8340AC1.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5CAF
Deuteranopia (green-blind)
#3360A9
Tritanopia (blue-blind)
#7E5570
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8340ac;
/* rgb */ color: rgb(131, 64, 172);
/* oklch */ color: oklch(50.6% 0.171 310.3);
Tailwind
colors: {
  custom: {
    50: '#aa79c5',
    500: '#8340ac',
    950: '#000000',
  },
}
SCSS
$custom: #8340ac;
$custom-light: #aa79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8340ac",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 277.222,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50639,
    "c": 0.17123,
    "h": 310.3
  },
  "luminance": 0.11471
}

Semantic roles & 50–950 ramp

primary
#8340AC
secondary
#9DC187
accent
#D55284
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8340AC

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

Preview Lab → · Contrast checker → · Palette generator →

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