#8340DF#8340DF

#8340DF is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.4% C 0.226 H 297.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8340DF
RGBrgb(131, 64, 223)
HSLhsl(265, 71%, 56%)
HSVhsv(265, 71%, 87%)
CMYKcmyk(41.3%, 71.3%, 0%, 12.5%)
CIE-LABlab(43.97, 59.75, -70.17)
CIE-LCHlch(43.97, 92.16, 310.41°)
OKLaboklab(54.36% 0.1045 -0.2006)
OKLCHoklch(54.36% 0.226 297.5)
XYZxyz(24.5093, 13.8194, 71.1738)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340DF #9CDF40
analogous
#404DDF #8340DF #D340DF
triadic
#8340DF #DF8340 #40DF83
tetradic
#8340DF #DF404D #9CDF40 #40DFD3
square
#8340DF #DF404D #9CDF40 #40DFD3
split-complementary
#8340DF #DFD340 #4DDF40
monochromatic
#49188D #6420C1 #8340DF #A574E8 #C7A9F1

Accessibility & contrast

On white

5.58
#8340DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8340DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340DF
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340DF#FFFFFF#000000##FFFFFF
##8340DF1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E4
Deuteranopia (green-blind)
#0066DC
Tritanopia (blue-blind)
#6C688C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8340df;
/* rgb */ color: rgb(131, 64, 223);
/* oklch */ color: oklch(54.4% 0.226 297.5);
Tailwind
colors: {
  custom: {
    50: '#ae7aea',
    500: '#8340df',
    950: '#000000',
  },
}
SCSS
$custom: #8340df;
$custom-light: #ae7aea;
$custom-dark: #000000;
JSON
{
  "hex": "#8340df",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 265.283,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54363,
    "c": 0.2262,
    "h": 297.5
  },
  "luminance": 0.1382
}

Semantic roles & 50–950 ramp

primary
#8340DF
secondary
#C3DE9D
accent
#EE3AA2
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8340DF

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

Preview Lab → · Contrast checker → · Palette generator →

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