#8340D1#8340D1

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

Color values

HEX#8340D1
RGBrgb(131, 64, 209)
HSLhsl(268, 61%, 54%)
HSVhsv(268, 69%, 82%)
CMYKcmyk(37.3%, 69.4%, 0%, 18%)
CIE-LABlab(42.91, 56.31, -63.89)
CIE-LCHlch(42.91, 85.16, 311.39°)
OKLaboklab(53.27% 0.107 -0.1821)
OKLCHoklch(53.27% 0.211 300.4)
XYZxyz(22.6993, 13.0954, 61.6410)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340D1 #8ED140
analogous
#4045D1 #8340D1 #CB40D1
triadic
#8340D1 #D18340 #40D183
tetradic
#8340D1 #D14045 #8ED140 #40D1CB
square
#8340D1 #D14045 #8ED140 #40D1CB
split-complementary
#8340D1 #D1CB40 #45D140
monochromatic
#481D79 #6529AB #8340D1 #A371DD #C3A3E9

Accessibility & contrast

On white

5.80
#8340D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8340D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340D1
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340D1#FFFFFF#000000##FFFFFF
##8340D11.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D5
Deuteranopia (green-blind)
#0064CE
Tritanopia (blue-blind)
#726384
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8340d1;
/* rgb */ color: rgb(131, 64, 209);
/* oklch */ color: oklch(53.3% 0.211 300.4);
Tailwind
colors: {
  custom: {
    50: '#ad7ae0',
    500: '#8340d1',
    950: '#000000',
  },
}
SCSS
$custom: #8340d1;
$custom-light: #ad7ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#8340d1",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 267.724,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53273,
    "c": 0.21126,
    "h": 300.4
  },
  "luminance": 0.13096
}

Semantic roles & 50–950 ramp

primary
#8340D1
secondary
#B9D597
accent
#E4449A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8340D1

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

Preview Lab → · Contrast checker → · Palette generator →

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