#8342A2#8342A2

#8342A2 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.3% C 0.157 H 313.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8342A2
RGBrgb(131, 66, 162)
HSLhsl(281, 42%, 45%)
HSVhsv(281, 59%, 64%)
CMYKcmyk(19.1%, 59.3%, 0%, 36.5%)
CIE-LABlab(40.13, 44.27, -40.77)
CIE-LCHlch(40.13, 60.19, 317.35°)
OKLaboklab(50.28% 0.1081 -0.1143)
OKLCHoklch(50.28% 0.157 313.4)
XYZxyz(17.8288, 11.3308, 35.4233)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342A2 #61A242
analogous
#5342A2 #8342A2 #A24291
triadic
#8342A2 #A28342 #42A283
tetradic
#8342A2 #A25342 #61A242 #4291A2
square
#8342A2 #A25342 #61A242 #4291A2
split-complementary
#8342A2 #91A242 #42A253
monochromatic
#3D1F4B #603077 #8342A2 #A162BF #BB8ED1

Accessibility & contrast

On white

6.43
#8342A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8342A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342A2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342A2#FFFFFF#000000##FFFFFF
##8342A21.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA5
Deuteranopia (green-blind)
#3E60A0
Tritanopia (blue-blind)
#80536C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8342a2;
/* rgb */ color: rgb(131, 66, 162);
/* oklch */ color: oklch(50.3% 0.157 313.4);
Tailwind
colors: {
  custom: {
    50: '#aa7abe',
    500: '#8342a2',
    950: '#000000',
  },
}
SCSS
$custom: #8342a2;
$custom-light: #aa7abe;
$custom-dark: #000000;
JSON
{
  "hex": "#8342a2",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 280.625,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50275,
    "c": 0.15733,
    "h": 313.4
  },
  "luminance": 0.1133
}

Semantic roles & 50–950 ramp

primary
#8342A2
secondary
#96BC84
accent
#D2567E
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #8342A2

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

Preview Lab → · Contrast checker → · Palette generator →

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