#8342D3#8342D3

#8342D3 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.7% C 0.211 H 299.8°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8342D3
RGBrgb(131, 66, 211)
HSLhsl(267, 62%, 54%)
HSVhsv(267, 69%, 83%)
CMYKcmyk(37.9%, 68.7%, 0%, 17.3%)
CIE-LABlab(43.40, 55.84, -64.24)
CIE-LCHlch(43.40, 85.12, 311.00°)
OKLaboklab(53.67% 0.1047 -0.1832)
OKLCHoklch(53.67% 0.211 299.8)
XYZxyz(23.0632, 13.4246, 62.9915)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8342D3 #92D342
analogous
#4249D3 #8342D3 #CC42D3
triadic
#8342D3 #D38342 #42D383
tetradic
#8342D3 #D34249 #92D342 #42D3CC
square
#8342D3 #D34249 #92D342 #42D3CC
split-complementary
#8342D3 #D3CC42 #49D342
monochromatic
#481D7D #6529AF #8342D3 #A474DF #C4A5EA

Accessibility & contrast

On white

5.70
#8342D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8342D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8342D3
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8342D3#FFFFFF#000000##FFFFFF
##8342D31.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0065D0
Tritanopia (blue-blind)
#716586
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8342d3;
/* rgb */ color: rgb(131, 66, 211);
/* oklch */ color: oklch(53.7% 0.211 299.8);
Tailwind
colors: {
  custom: {
    50: '#ad7be1',
    500: '#8342d3',
    950: '#000000',
  },
}
SCSS
$custom: #8342d3;
$custom-light: #ad7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8342d3",
  "rgb": {
    "r": 131,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 266.897,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53669,
    "c": 0.21101,
    "h": 299.8
  },
  "luminance": 0.13425
}

Semantic roles & 50–950 ramp

primary
#8342D3
secondary
#BCD79A
accent
#E5429C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8342D3

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

Preview Lab → · Contrast checker → · Palette generator →

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