#8342AE#8342AE

#8342AE is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.0% C 0.170 H 309.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8342AE
RGBrgb(131, 66, 174)
HSLhsl(276, 45%, 47%)
HSVhsv(276, 62%, 68%)
CMYKcmyk(24.7%, 62.1%, 0%, 31.8%)
CIE-LABlab(40.86, 46.99, -46.75)
CIE-LCHlch(40.86, 66.28, 315.14°)
OKLaboklab(51.04% 0.1081 -0.1318)
OKLCHoklch(51.04% 0.17 309.4)
XYZxyz(18.9468, 11.7781, 41.3115)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342AE #6DAE42
analogous
#4D42AE #8342AE #AE42A3
triadic
#8342AE #AE8342 #42AE83
tetradic
#8342AE #AE4D42 #6DAE42 #42A3AE
square
#8342AE #AE4D42 #6DAE42 #42A3AE
split-complementary
#8342AE #A3AE42 #42AE4D
monochromatic
#402055 #623182 #8342AE #A068C6 #BC94D6

Accessibility & contrast

On white

6.26
#8342AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8342AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342AE
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342AE#FFFFFF#000000##FFFFFF
##8342AE1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105EB1
Deuteranopia (green-blind)
#3461AB
Tritanopia (blue-blind)
#7D5772
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8342ae;
/* rgb */ color: rgb(131, 66, 174);
/* oklch */ color: oklch(51.0% 0.170 309.4);
Tailwind
colors: {
  custom: {
    50: '#aa7ac7',
    500: '#8342ae',
    950: '#000000',
  },
}
SCSS
$custom: #8342ae;
$custom-light: #aa7ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8342ae",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 276.111,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51041,
    "c": 0.17049,
    "h": 309.4
  },
  "luminance": 0.11778
}

Semantic roles & 50–950 ramp

primary
#8342AE
secondary
#A0C28A
accent
#D55387
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8342AE

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

Preview Lab → · Contrast checker → · Palette generator →

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