#8342D2#8342D2

#8342D2 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.6% C 0.210 H 300.0°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8342D2
RGBrgb(131, 66, 210)
HSLhsl(267, 62%, 54%)
HSVhsv(267, 69%, 82%)
CMYKcmyk(37.6%, 68.6%, 0%, 17.6%)
CIE-LABlab(43.32, 55.60, -63.79)
CIE-LCHlch(43.32, 84.62, 311.08°)
OKLaboklab(53.59% 0.1049 -0.1819)
OKLCHoklch(53.59% 0.21 300)
XYZxyz(22.9383, 13.3747, 62.3333)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342D2 #91D242
analogous
#4249D2 #8342D2 #CB42D2
triadic
#8342D2 #D28342 #42D283
tetradic
#8342D2 #D24249 #91D242 #42D2CB
square
#8342D2 #D24249 #91D242 #42D2CB
split-complementary
#8342D2 #D2CB42 #49D242
monochromatic
#481E7C #6529AD #8342D2 #A373DE #C4A5EA

Accessibility & contrast

On white

5.71
#8342D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8342D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342D2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342D2#FFFFFF#000000##FFFFFF
##8342D21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0065CF
Tritanopia (blue-blind)
#716485
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8342d2;
/* rgb */ color: rgb(131, 66, 210);
/* oklch */ color: oklch(53.6% 0.210 300.0);
Tailwind
colors: {
  custom: {
    50: '#ad7be1',
    500: '#8342d2',
    950: '#000000',
  },
}
SCSS
$custom: #8342d2;
$custom-light: #ad7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8342d2",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 267.083,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53593,
    "c": 0.20992,
    "h": 300
  },
  "luminance": 0.13375
}

Semantic roles & 50–950 ramp

primary
#8342D2
secondary
#BBD799
accent
#E5439C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8342D2

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

Preview Lab → · Contrast checker → · Palette generator →

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