#8342C8#8342C8

#8342C8 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.199 H 302.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8342C8
RGBrgb(131, 66, 200)
HSLhsl(269, 55%, 52%)
HSVhsv(269, 67%, 78%)
CMYKcmyk(34.5%, 67%, 0%, 21.6%)
CIE-LABlab(42.60, 53.15, -59.18)
CIE-LCHlch(42.60, 79.55, 311.93°)
OKLaboklab(52.85% 0.1062 -0.1683)
OKLCHoklch(52.85% 0.199 302.3)
XYZxyz(21.7312, 12.8918, 55.9759)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342C8 #87C842
analogous
#4244C8 #8342C8 #C642C8
triadic
#8342C8 #C88342 #42C883
tetradic
#8342C8 #C84244 #87C842 #42C8C6
square
#8342C8 #C84244 #87C842 #42C8C6
split-complementary
#8342C8 #C8C642 #44C842
monochromatic
#47206F #652E9F #8342C8 #A271D6 #C1A1E4

Accessibility & contrast

On white

5.87
#8342C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8342C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342C8
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342C8#FFFFFF#000000##FFFFFF
##8342C81.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#756080
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8342c8;
/* rgb */ color: rgb(131, 66, 200);
/* oklch */ color: oklch(52.8% 0.199 302.3);
Tailwind
colors: {
  custom: {
    50: '#ac7bda',
    500: '#8342c8',
    950: '#000000',
  },
}
SCSS
$custom: #8342c8;
$custom-light: #ac7bda;
$custom-dark: #000000;
JSON
{
  "hex": "#8342c8",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 269.104,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52848,
    "c": 0.19902,
    "h": 302.3
  },
  "luminance": 0.12892
}

Semantic roles & 50–950 ramp

primary
#8342C8
secondary
#B4D096
accent
#DE4A96
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8342C8

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

Preview Lab → · Contrast checker → · Palette generator →

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