#8342B2#8342B2

#8342B2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.175 H 308.1°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8342B2
RGBrgb(131, 66, 178)
HSLhsl(275, 46%, 48%)
HSVhsv(275, 63%, 70%)
CMYKcmyk(26.4%, 62.9%, 0%, 30.2%)
CIE-LABlab(41.11, 47.92, -48.71)
CIE-LCHlch(41.11, 68.33, 314.53°)
OKLaboklab(51.31% 0.108 -0.1375)
OKLCHoklch(51.31% 0.175 308.1)
XYZxyz(19.3425, 11.9364, 43.3958)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342B2 #71B242
analogous
#4B42B2 #8342B2 #B242A9
triadic
#8342B2 #B28342 #42B283
tetradic
#8342B2 #B24B42 #71B242 #42A9B2
square
#8342B2 #B24B42 #71B242 #42A9B2
split-complementary
#8342B2 #A9B242 #42B24B
monochromatic
#412159 #623185 #8342B2 #A06AC8 #BC96D8

Accessibility & contrast

On white

6.20
#8342B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8342B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342B2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342B2#FFFFFF#000000##FFFFFF
##8342B21.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025EB5
Deuteranopia (green-blind)
#2F62AF
Tritanopia (blue-blind)
#7C5874
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8342b2;
/* rgb */ color: rgb(131, 66, 178);
/* oklch */ color: oklch(51.3% 0.175 308.1);
Tailwind
colors: {
  custom: {
    50: '#ab7aca',
    500: '#8342b2',
    950: '#000000',
  },
}
SCSS
$custom: #8342b2;
$custom-light: #ab7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8342b2",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 274.821,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51306,
    "c": 0.17488,
    "h": 308.1
  },
  "luminance": 0.11936
}

Semantic roles & 50–950 ramp

primary
#8342B2
secondary
#A3C48C
accent
#D65289
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8342B2

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

Preview Lab → · Contrast checker → · Palette generator →

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