#8342C1#8342C1

#8342C1 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.191 H 304.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8342C1
RGBrgb(131, 66, 193)
HSLhsl(271, 51%, 51%)
HSVhsv(271, 66%, 76%)
CMYKcmyk(32.1%, 65.8%, 0%, 24.3%)
CIE-LABlab(42.11, 51.46, -55.90)
CIE-LCHlch(42.11, 75.99, 312.63°)
OKLaboklab(52.34% 0.107 -0.1587)
OKLCHoklch(52.34% 0.191 304)
XYZxyz(20.9317, 12.5720, 51.7657)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342C1 #80C142
analogous
#4342C1 #8342C1 #C142BF
triadic
#8342C1 #C18342 #42C183
tetradic
#8342C1 #C14342 #80C142 #42BFC1
square
#8342C1 #C14342 #80C142 #42BFC1
split-complementary
#8342C1 #BFC142 #42C143
monochromatic
#452267 #643195 #8342C1 #A170D0 #BF9EDF

Accessibility & contrast

On white

5.98
#8342C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8342C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342C1
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342C1#FFFFFF#000000##FFFFFF
##8342C11.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#1763BE
Tritanopia (blue-blind)
#775E7C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8342c1;
/* rgb */ color: rgb(131, 66, 193);
/* oklch */ color: oklch(52.3% 0.191 304.0);
Tailwind
colors: {
  custom: {
    50: '#ac7bd4',
    500: '#8342c1',
    950: '#000000',
  },
}
SCSS
$custom: #8342c1;
$custom-light: #ac7bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#8342c1",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 270.709,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52342,
    "c": 0.19137,
    "h": 304
  },
  "luminance": 0.12572
}

Semantic roles & 50–950 ramp

primary
#8342C1
secondary
#AFCC93
accent
#DA4E92
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8342C1

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

Preview Lab → · Contrast checker → · Palette generator →

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