#8342CD#8342CD

#8342CD is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.204 H 301.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8342CD
RGBrgb(131, 66, 205)
HSLhsl(268, 58%, 53%)
HSVhsv(268, 68%, 80%)
CMYKcmyk(36.1%, 67.8%, 0%, 19.6%)
CIE-LABlab(42.96, 54.37, -61.50)
CIE-LCHlch(42.96, 82.09, 311.48°)
OKLaboklab(53.22% 0.1056 -0.1751)
OKLCHoklch(53.22% 0.204 301.1)
XYZxyz(22.3251, 13.1294, 59.1038)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342CD #8CCD42
analogous
#4246CD #8342CD #C942CD
triadic
#8342CD #CD8342 #42CD83
tetradic
#8342CD #CD4246 #8CCD42 #42CDC9
square
#8342CD #CD4246 #8CCD42 #42CDC9
split-complementary
#8342CD #CDC942 #46CD42
monochromatic
#481F76 #652CA6 #8342CD #A372DA #C3A3E7

Accessibility & contrast

On white

5.79
#8342CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8342CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342CD
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342CD#FFFFFF#000000##FFFFFF
##8342CD1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#736282
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8342cd;
/* rgb */ color: rgb(131, 66, 205);
/* oklch */ color: oklch(53.2% 0.204 301.1);
Tailwind
colors: {
  custom: {
    50: '#ad7bdd',
    500: '#8342cd',
    950: '#000000',
  },
}
SCSS
$custom: #8342cd;
$custom-light: #ad7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8342cd",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 268.058,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53217,
    "c": 0.20448,
    "h": 301.1
  },
  "luminance": 0.1313
}

Semantic roles & 50–950 ramp

primary
#8342CD
secondary
#B7D397
accent
#E14699
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8342CD

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

Preview Lab → · Contrast checker → · Palette generator →

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