#8342C7#8342C7

#8342C7 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.8% C 0.198 H 302.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#8342C7
RGBrgb(131, 66, 199)
HSLhsl(269, 54%, 52%)
HSVhsv(269, 67%, 78%)
CMYKcmyk(34.2%, 66.8%, 0%, 22%)
CIE-LABlab(42.53, 52.91, -58.72)
CIE-LCHlch(42.53, 79.04, 312.02°)
OKLaboklab(52.78% 0.1063 -0.1669)
OKLCHoklch(52.78% 0.198 302.5)
XYZxyz(21.6147, 12.8452, 55.3624)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342C7 #86C742
analogous
#4244C7 #8342C7 #C542C7
triadic
#8342C7 #C78342 #42C783
tetradic
#8342C7 #C74244 #86C742 #42C7C5
square
#8342C7 #C74244 #86C742 #42C7C5
split-complementary
#8342C7 #C7C542 #44C742
monochromatic
#46216E #652F9D #8342C7 #A271D5 #C1A0E3

Accessibility & contrast

On white

5.88
#8342C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8342C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342C7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342C7#FFFFFF#000000##FFFFFF
##8342C71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0064C4
Tritanopia (blue-blind)
#75607F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8342c7;
/* rgb */ color: rgb(131, 66, 199);
/* oklch */ color: oklch(52.8% 0.198 302.5);
Tailwind
colors: {
  custom: {
    50: '#ac7bd9',
    500: '#8342c7',
    950: '#000000',
  },
}
SCSS
$custom: #8342c7;
$custom-light: #ac7bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8342c7",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 269.323,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52775,
    "c": 0.19793,
    "h": 302.5
  },
  "luminance": 0.12845
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8342C7

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

Preview Lab → · Contrast checker → · Palette generator →

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