#8342BC#8342BC

#8342BC is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.186 H 305.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8342BC
RGBrgb(131, 66, 188)
HSLhsl(272, 48%, 50%)
HSVhsv(272, 65%, 74%)
CMYKcmyk(30.3%, 64.9%, 0%, 26.3%)
CIE-LABlab(41.77, 50.27, -53.53)
CIE-LCHlch(41.77, 73.43, 313.20°)
OKLaboklab(51.99% 0.1074 -0.1517)
OKLCHoklch(51.99% 0.186 305.3)
XYZxyz(20.3834, 12.3527, 48.8777)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342BC #7BBC42
analogous
#4642BC #8342BC #BC42B8
triadic
#8342BC #BC8342 #42BC83
tetradic
#8342BC #BC4642 #7BBC42 #42B8BC
square
#8342BC #BC4642 #7BBC42 #42B8BC
split-complementary
#8342BC #B8BC42 #42BC46
monochromatic
#442261 #63328F #8342BC #A16FCC #BE9CDC

Accessibility & contrast

On white

6.05
#8342BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8342BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342BC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342BC#FFFFFF#000000##FFFFFF
##8342BC1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#2263B9
Tritanopia (blue-blind)
#795C79
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8342bc;
/* rgb */ color: rgb(131, 66, 188);
/* oklch */ color: oklch(52.0% 0.186 305.3);
Tailwind
colors: {
  custom: {
    50: '#ab7ad1',
    500: '#8342bc',
    950: '#000000',
  },
}
SCSS
$custom: #8342bc;
$custom-light: #ab7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8342bc",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 271.967,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5199,
    "c": 0.18588,
    "h": 305.3
  },
  "luminance": 0.12353
}

Semantic roles & 50–950 ramp

primary
#8342BC
secondary
#ABC991
accent
#D8508F
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8342BC

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

Preview Lab → · Contrast checker → · Palette generator →

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