#8340CE#8340CE

#8340CE is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.208 H 301.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8340CE
RGBrgb(131, 64, 206)
HSLhsl(268, 59%, 53%)
HSVhsv(268, 69%, 81%)
CMYKcmyk(36.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(42.69, 55.58, -62.52)
CIE-LCHlch(42.69, 83.65, 311.64°)
OKLaboklab(53.04% 0.1075 -0.1781)
OKLCHoklch(53.04% 0.208 301.1)
XYZxyz(22.3313, 12.9482, 59.7033)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340CE #8BCE40
analogous
#4044CE #8340CE #CA40CE
triadic
#8340CE #CE8340 #40CE83
tetradic
#8340CE #CE4044 #8BCE40 #40CECA
square
#8340CE #CE4044 #8BCE40 #40CECA
split-complementary
#8340CE #CECA40 #44CE40
monochromatic
#471E75 #652BA6 #8340CE #A371DA #C2A1E7

Accessibility & contrast

On white

5.85
#8340CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8340CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340CE
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340CE#FFFFFF#000000##FFFFFF
##8340CE1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D2
Deuteranopia (green-blind)
#0064CB
Tritanopia (blue-blind)
#736282
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8340ce;
/* rgb */ color: rgb(131, 64, 206);
/* oklch */ color: oklch(53.0% 0.208 301.1);
Tailwind
colors: {
  custom: {
    50: '#ad7ade',
    500: '#8340ce',
    950: '#000000',
  },
}
SCSS
$custom: #8340ce;
$custom-light: #ad7ade;
$custom-dark: #000000;
JSON
{
  "hex": "#8340ce",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 268.31,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53045,
    "c": 0.20803,
    "h": 301.1
  },
  "luminance": 0.12948
}

Semantic roles & 50–950 ramp

primary
#8340CE
secondary
#B7D496
accent
#E24598
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8340CE

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

Preview Lab → · Contrast checker → · Palette generator →

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