#8342B0#8342B0

#8342B0 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.2% C 0.173 H 308.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8342B0
RGBrgb(131, 66, 176)
HSLhsl(275, 45%, 47%)
HSVhsv(275, 63%, 69%)
CMYKcmyk(25.6%, 62.5%, 0%, 31%)
CIE-LABlab(40.99, 47.45, -47.73)
CIE-LCHlch(40.99, 67.31, 314.83°)
OKLaboklab(51.17% 0.1081 -0.1347)
OKLCHoklch(51.17% 0.173 308.7)
XYZxyz(19.1432, 11.8566, 42.3460)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342B0 #6FB042
analogous
#4C42B0 #8342B0 #B042A6
triadic
#8342B0 #B08342 #42B083
tetradic
#8342B0 #B04C42 #6FB042 #42A6B0
square
#8342B0 #B04C42 #6FB042 #42A6B0
split-complementary
#8342B0 #A6B042 #42B04C
monochromatic
#412157 #623183 #8342B0 #A069C7 #BC95D7

Accessibility & contrast

On white

6.23
#8342B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8342B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342B0
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342B0#FFFFFF#000000##FFFFFF
##8342B01.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5EB3
Deuteranopia (green-blind)
#3161AD
Tritanopia (blue-blind)
#7C5873
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8342b0;
/* rgb */ color: rgb(131, 66, 176);
/* oklch */ color: oklch(51.2% 0.173 308.7);
Tailwind
colors: {
  custom: {
    50: '#aa7ac8',
    500: '#8342b0',
    950: '#000000',
  },
}
SCSS
$custom: #8342b0;
$custom-light: #aa7ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#8342b0",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 275.455,
    "s": 45.455,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51172,
    "c": 0.17268,
    "h": 308.7
  },
  "luminance": 0.11856
}

Semantic roles & 50–950 ramp

primary
#8342B0
secondary
#A2C38B
accent
#D55388
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8342B0

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

Preview Lab → · Contrast checker → · Palette generator →

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