#8342C3#8342C3

#8342C3 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.194 H 303.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8342C3
RGBrgb(131, 66, 195)
HSLhsl(270, 52%, 51%)
HSVhsv(270, 66%, 76%)
CMYKcmyk(32.8%, 66.2%, 0%, 23.5%)
CIE-LABlab(42.25, 51.95, -56.85)
CIE-LCHlch(42.25, 77.00, 312.42°)
OKLaboklab(52.49% 0.1068 -0.1614)
OKLCHoklch(52.49% 0.194 303.5)
XYZxyz(21.1564, 12.6619, 52.9486)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342C3 #82C342
analogous
#4242C3 #8342C3 #C342C2
triadic
#8342C3 #C38342 #42C383
tetradic
#8342C3 #C34242 #82C342 #42C2C3
square
#8342C3 #C34242 #82C342 #42C2C3
split-complementary
#8342C3 #C2C342 #42C342
monochromatic
#462169 #643098 #8342C3 #A170D2 #C09FE0

Accessibility & contrast

On white

5.94
#8342C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8342C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342C3
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342C3#FFFFFF#000000##FFFFFF
##8342C31.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#1263C0
Tritanopia (blue-blind)
#775F7D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8342c3;
/* rgb */ color: rgb(131, 66, 195);
/* oklch */ color: oklch(52.5% 0.194 303.5);
Tailwind
colors: {
  custom: {
    50: '#ac7bd6',
    500: '#8342c3',
    950: '#000000',
  },
}
SCSS
$custom: #8342c3;
$custom-light: #ac7bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8342c3",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 270.233,
    "s": 51.807,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52486,
    "c": 0.19356,
    "h": 303.5
  },
  "luminance": 0.12662
}

Semantic roles & 50–950 ramp

primary
#8342C3
secondary
#B0CD94
accent
#DB4D93
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8342C3

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

Preview Lab → · Contrast checker → · Palette generator →

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