#8342C5#8342C5

#8342C5 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.196 H 303.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8342C5
RGBrgb(131, 66, 197)
HSLhsl(270, 53%, 52%)
HSVhsv(270, 66%, 77%)
CMYKcmyk(33.5%, 66.5%, 0%, 22.7%)
CIE-LABlab(42.39, 52.43, -57.78)
CIE-LCHlch(42.39, 78.02, 312.22°)
OKLaboklab(52.63% 0.1066 -0.1642)
OKLCHoklch(52.63% 0.196 303)
XYZxyz(21.3840, 12.7529, 54.1475)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342C5 #84C542
analogous
#4243C5 #8342C5 #C442C5
triadic
#8342C5 #C58342 #42C583
tetradic
#8342C5 #C54243 #84C542 #42C5C4
square
#8342C5 #C54243 #84C542 #42C5C4
split-complementary
#8342C5 #C5C442 #43C542
monochromatic
#46216C #642F9A #8342C5 #A271D3 #C0A0E2

Accessibility & contrast

On white

5.91
#8342C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8342C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342C5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342C5#FFFFFF#000000##FFFFFF
##8342C51.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0A64C2
Tritanopia (blue-blind)
#765F7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8342c5;
/* rgb */ color: rgb(131, 66, 197);
/* oklch */ color: oklch(52.6% 0.196 303.0);
Tailwind
colors: {
  custom: {
    50: '#ac7bd7',
    500: '#8342c5',
    950: '#000000',
  },
}
SCSS
$custom: #8342c5;
$custom-light: #ac7bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8342c5",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 269.771,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5263,
    "c": 0.19575,
    "h": 303
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#8342C5
secondary
#B2CE95
accent
#DC4B94
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8342C5

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

Preview Lab → · Contrast checker → · Palette generator →

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