#8342D1#8342D1

#8342D1 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.5% C 0.209 H 300.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8342D1
RGBrgb(131, 66, 209)
HSLhsl(267, 61%, 54%)
HSVhsv(267, 68%, 82%)
CMYKcmyk(37.3%, 68.4%, 0%, 18%)
CIE-LABlab(43.25, 55.35, -63.33)
CIE-LCHlch(43.25, 84.11, 311.15°)
OKLaboklab(53.52% 0.105 -0.1805)
OKLCHoklch(53.52% 0.209 300.2)
XYZxyz(22.8141, 13.3250, 61.6793)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342D1 #90D142
analogous
#4249D1 #8342D1 #CB42D1
triadic
#8342D1 #D18342 #42D183
tetradic
#8342D1 #D14249 #90D142 #42D1CB
square
#8342D1 #D14249 #90D142 #42D1CB
split-complementary
#8342D1 #D1CB42 #49D142
monochromatic
#481E7B #652AAC #8342D1 #A373DD #C4A4E9

Accessibility & contrast

On white

5.73
#8342D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8342D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342D1
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342D1#FFFFFF#000000##FFFFFF
##8342D11.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0065CE
Tritanopia (blue-blind)
#726484
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8342d1;
/* rgb */ color: rgb(131, 66, 209);
/* oklch */ color: oklch(53.5% 0.209 300.2);
Tailwind
colors: {
  custom: {
    50: '#ad7be0',
    500: '#8342d1',
    950: '#000000',
  },
}
SCSS
$custom: #8342d1;
$custom-light: #ad7be0;
$custom-dark: #000000;
JSON
{
  "hex": "#8342d1",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 267.273,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53517,
    "c": 0.20884,
    "h": 300.2
  },
  "luminance": 0.13325
}

Semantic roles & 50–950 ramp

primary
#8342D1
secondary
#BAD699
accent
#E4449B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8342D1

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

Preview Lab → · Contrast checker → · Palette generator →

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