#8342AD#8342AD

#8342AD is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.169 H 309.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8342AD
RGBrgb(131, 66, 173)
HSLhsl(276, 45%, 47%)
HSVhsv(276, 62%, 68%)
CMYKcmyk(24.3%, 61.8%, 0%, 32.2%)
CIE-LABlab(40.80, 46.76, -46.26)
CIE-LCHlch(40.80, 65.78, 315.31°)
OKLaboklab(50.98% 0.1082 -0.1304)
OKLCHoklch(50.98% 0.169 309.7)
XYZxyz(18.8497, 11.7392, 40.8000)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342AD #6CAD42
analogous
#4E42AD #8342AD #AD42A2
triadic
#8342AD #AD8342 #42AD83
tetradic
#8342AD #AD4E42 #6CAD42 #42A2AD
square
#8342AD #AD4E42 #6CAD42 #42A2AD
split-complementary
#8342AD #A2AD42 #42AD4E
monochromatic
#402054 #613181 #8342AD #A067C5 #BC93D6

Accessibility & contrast

On white

6.27
#8342AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8342AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342AD
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342AD#FFFFFF#000000##FFFFFF
##8342AD1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135DB0
Deuteranopia (green-blind)
#3561AA
Tritanopia (blue-blind)
#7D5771
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8342ad;
/* rgb */ color: rgb(131, 66, 173);
/* oklch */ color: oklch(51.0% 0.169 309.7);
Tailwind
colors: {
  custom: {
    50: '#aa7ac6',
    500: '#8342ad',
    950: '#000000',
  },
}
SCSS
$custom: #8342ad;
$custom-light: #aa7ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#8342ad",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 276.449,
    "s": 44.77,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50975,
    "c": 0.16939,
    "h": 309.7
  },
  "luminance": 0.11739
}

Semantic roles & 50–950 ramp

primary
#8342AD
secondary
#9FC189
accent
#D45386
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8342AD

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

Preview Lab → · Contrast checker → · Palette generator →

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