#8340D2#8340D2

#8340D2 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.212 H 300.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8340D2
RGBrgb(131, 64, 210)
HSLhsl(268, 62%, 54%)
HSVhsv(268, 70%, 82%)
CMYKcmyk(37.6%, 69.5%, 0%, 17.6%)
CIE-LABlab(42.98, 56.55, -64.34)
CIE-LCHlch(42.98, 85.66, 311.31°)
OKLaboklab(53.35% 0.1069 -0.1835)
OKLCHoklch(53.35% 0.212 300.2)
XYZxyz(22.8235, 13.1450, 62.2951)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340D2 #8FD240
analogous
#4046D2 #8340D2 #CC40D2
triadic
#8340D2 #D28340 #40D283
tetradic
#8340D2 #D24046 #8FD240 #40D2CC
square
#8340D2 #D24046 #8FD240 #40D2CC
split-complementary
#8340D2 #D2CC40 #46D240
monochromatic
#481D7B #6529AC #8340D2 #A372DE #C3A3E9

Accessibility & contrast

On white

5.79
#8340D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8340D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340D2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340D2#FFFFFF#000000##FFFFFF
##8340D21.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)
#0065D6
Deuteranopia (green-blind)
#0064CF
Tritanopia (blue-blind)
#716384
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8340d2;
/* rgb */ color: rgb(131, 64, 210);
/* oklch */ color: oklch(53.3% 0.212 300.2);
Tailwind
colors: {
  custom: {
    50: '#ad7ae1',
    500: '#8340d2',
    950: '#000000',
  },
}
SCSS
$custom: #8340d2;
$custom-light: #ad7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8340d2",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 267.534,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53349,
    "c": 0.21233,
    "h": 300.2
  },
  "luminance": 0.13145
}

Semantic roles & 50–950 ramp

primary
#8340D2
secondary
#B9D698
accent
#E5439B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8340D2

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

Preview Lab → · Contrast checker → · Palette generator →

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