#8342B3#8342B3

#8342B3 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.4% C 0.176 H 307.8°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8342B3
RGBrgb(131, 66, 179)
HSLhsl(275, 46%, 48%)
HSVhsv(275, 63%, 70%)
CMYKcmyk(26.8%, 63.1%, 0%, 29.8%)
CIE-LABlab(41.18, 48.15, -49.20)
CIE-LCHlch(41.18, 68.84, 314.38°)
OKLaboklab(51.37% 0.108 -0.139)
OKLCHoklch(51.37% 0.176 307.8)
XYZxyz(19.4433, 11.9767, 43.9265)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342B3 #72B342
analogous
#4A42B3 #8342B3 #B342AA
triadic
#8342B3 #B38342 #42B383
tetradic
#8342B3 #B34A42 #72B342 #42AAB3
square
#8342B3 #B34A42 #72B342 #42AAB3
split-complementary
#8342B3 #AAB342 #42B34A
monochromatic
#42215A #623286 #8342B3 #A06AC8 #BD97D9

Accessibility & contrast

On white

6.19
#8342B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8342B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342B3
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342B3#FFFFFF#000000##FFFFFF
##8342B31.006.193.406.19
#FFFFFF6.191.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#2E62B0
Tritanopia (blue-blind)
#7C5974
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8342b3;
/* rgb */ color: rgb(131, 66, 179);
/* oklch */ color: oklch(51.4% 0.176 307.8);
Tailwind
colors: {
  custom: {
    50: '#ab7aca',
    500: '#8342b3',
    950: '#000000',
  },
}
SCSS
$custom: #8342b3;
$custom-light: #ab7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8342b3",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 274.513,
    "s": 46.122,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51373,
    "c": 0.17598,
    "h": 307.8
  },
  "luminance": 0.11976
}

Semantic roles & 50–950 ramp

primary
#8342B3
secondary
#A4C48C
accent
#D6528A
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8342B3

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

Preview Lab → · Contrast checker → · Palette generator →

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