#8340C9#8340C9

#8340C9 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.203 H 302.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8340C9
RGBrgb(131, 64, 201)
HSLhsl(269, 56%, 52%)
HSVhsv(269, 68%, 79%)
CMYKcmyk(34.8%, 68.2%, 0%, 21.2%)
CIE-LABlab(42.32, 54.36, -60.21)
CIE-LCHlch(42.32, 81.12, 312.08°)
OKLaboklab(52.67% 0.1082 -0.1713)
OKLCHoklch(52.67% 0.203 302.3)
XYZxyz(21.7336, 12.7091, 56.5551)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340C9 #86C940
analogous
#4042C9 #8340C9 #C740C9
triadic
#8340C9 #C98340 #40C983
tetradic
#8340C9 #C94042 #86C940 #40C9C7
square
#8340C9 #C94042 #86C940 #40C9C7
split-complementary
#8340C9 #C9C740 #42C940
monochromatic
#461F6F #652D9F #8340C9 #A270D6 #C19FE4

Accessibility & contrast

On white

5.93
#8340C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8340C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340C9
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340C9#FFFFFF#000000##FFFFFF
##8340C91.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CD
Deuteranopia (green-blind)
#0063C6
Tritanopia (blue-blind)
#75607F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8340c9;
/* rgb */ color: rgb(131, 64, 201);
/* oklch */ color: oklch(52.7% 0.203 302.3);
Tailwind
colors: {
  custom: {
    50: '#ac7ada',
    500: '#8340c9',
    950: '#000000',
  },
}
SCSS
$custom: #8340c9;
$custom-light: #ac7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8340c9",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 269.343,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52671,
    "c": 0.20265,
    "h": 302.3
  },
  "luminance": 0.12709
}

Semantic roles & 50–950 ramp

primary
#8340C9
secondary
#B3D094
accent
#DF4996
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8340C9

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

Preview Lab → · Contrast checker → · Palette generator →

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