#8342BF#8342BF

#8342BF is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.2% C 0.189 H 304.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8342BF
RGBrgb(131, 66, 191)
HSLhsl(271, 49%, 50%)
HSVhsv(271, 65%, 75%)
CMYKcmyk(31.4%, 65.4%, 0%, 25.1%)
CIE-LABlab(41.97, 50.99, -54.96)
CIE-LCHlch(41.97, 74.97, 312.85°)
OKLaboklab(52.2% 0.1072 -0.1559)
OKLCHoklch(52.2% 0.189 304.5)
XYZxyz(20.7102, 12.4834, 50.5986)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342BF #7EBF42
analogous
#4442BF #8342BF #BF42BC
triadic
#8342BF #BF8342 #42BF83
tetradic
#8342BF #BF4442 #7EBF42 #42BCBF
square
#8342BF #BF4442 #7EBF42 #42BCBF
split-complementary
#8342BF #BCBF42 #42BF44
monochromatic
#452265 #643292 #8342BF #A170CE #BF9DDE

Accessibility & contrast

On white

6.01
#8342BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8342BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342BF
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342BF#FFFFFF#000000##FFFFFF
##8342BF1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#1C63BC
Tritanopia (blue-blind)
#785D7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8342bf;
/* rgb */ color: rgb(131, 66, 191);
/* oklch */ color: oklch(52.2% 0.189 304.5);
Tailwind
colors: {
  custom: {
    50: '#ab7ad3',
    500: '#8342bf',
    950: '#000000',
  },
}
SCSS
$custom: #8342bf;
$custom-light: #ab7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8342bf",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 271.2,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.522,
    "c": 0.18917,
    "h": 304.5
  },
  "luminance": 0.12483
}

Semantic roles & 50–950 ramp

primary
#8342BF
secondary
#ADCA93
accent
#D94F91
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8342BF

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

Preview Lab → · Contrast checker → · Palette generator →

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