#8342BA#8342BA

#8342BA is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.184 H 305.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8342BA
RGBrgb(131, 66, 186)
HSLhsl(273, 48%, 49%)
HSVhsv(273, 65%, 73%)
CMYKcmyk(29.6%, 64.5%, 0%, 27.1%)
CIE-LABlab(41.64, 49.79, -52.58)
CIE-LCHlch(41.64, 72.41, 313.44°)
OKLaboklab(51.85% 0.1076 -0.1489)
OKLCHoklch(51.85% 0.184 305.8)
XYZxyz(20.1693, 12.2671, 47.7501)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342BA #79BA42
analogous
#4742BA #8342BA #BA42B5
triadic
#8342BA #BA8342 #42BA83
tetradic
#8342BA #BA4742 #79BA42 #42B5BA
square
#8342BA #BA4742 #79BA42 #42B5BA
split-complementary
#8342BA #B5BA42 #42BA47
monochromatic
#432260 #63328D #8342BA #A16ECB #BE9BDB

Accessibility & contrast

On white

6.08
#8342BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8342BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342BA
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342BA#FFFFFF#000000##FFFFFF
##8342BA1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#2563B7
Tritanopia (blue-blind)
#7A5B78
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8342ba;
/* rgb */ color: rgb(131, 66, 186);
/* oklch */ color: oklch(51.8% 0.184 305.8);
Tailwind
colors: {
  custom: {
    50: '#ab7acf',
    500: '#8342ba',
    950: '#000000',
  },
}
SCSS
$custom: #8342ba;
$custom-light: #ab7acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8342ba",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 272.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5185,
    "c": 0.18368,
    "h": 305.8
  },
  "luminance": 0.12267
}

Semantic roles & 50–950 ramp

primary
#8342BA
secondary
#AAC890
accent
#D7518E
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8342BA

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

Preview Lab → · Contrast checker → · Palette generator →

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