#8342BD#8342BD

#8342BD is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.1% C 0.187 H 305.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8342BD
RGBrgb(131, 66, 189)
HSLhsl(272, 48%, 50%)
HSVhsv(272, 65%, 74%)
CMYKcmyk(30.7%, 65.1%, 0%, 25.9%)
CIE-LABlab(41.84, 50.51, -54.01)
CIE-LCHlch(41.84, 73.94, 313.08°)
OKLaboklab(52.06% 0.1073 -0.1531)
OKLCHoklch(52.06% 0.187 305)
XYZxyz(20.4916, 12.3960, 49.4474)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342BD #7CBD42
analogous
#4542BD #8342BD #BD42BA
triadic
#8342BD #BD8342 #42BD83
tetradic
#8342BD #BD4542 #7CBD42 #42BABD
square
#8342BD #BD4542 #7CBD42 #42BABD
split-complementary
#8342BD #BABD42 #42BD45
monochromatic
#442262 #643290 #8342BD #A16FCD #BF9DDD

Accessibility & contrast

On white

6.04
#8342BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8342BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342BD
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342BD#FFFFFF#000000##FFFFFF
##8342BD1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#2063BA
Tritanopia (blue-blind)
#795C7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8342bd;
/* rgb */ color: rgb(131, 66, 189);
/* oklch */ color: oklch(52.1% 0.187 305.0);
Tailwind
colors: {
  custom: {
    50: '#ab7ad2',
    500: '#8342bd',
    950: '#000000',
  },
}
SCSS
$custom: #8342bd;
$custom-light: #ab7ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8342bd",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 271.707,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.5206,
    "c": 0.18698,
    "h": 305
  },
  "luminance": 0.12396
}

Semantic roles & 50–950 ramp

primary
#8342BD
secondary
#ACC992
accent
#D85090
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8342BD

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

Preview Lab → · Contrast checker → · Palette generator →

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