#8340CA#8340CA

#8340CA is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.7% C 0.204 H 302.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8340CA
RGBrgb(131, 64, 202)
HSLhsl(269, 57%, 52%)
HSVhsv(269, 68%, 79%)
CMYKcmyk(35.1%, 68.3%, 0%, 20.8%)
CIE-LABlab(42.39, 54.61, -60.68)
CIE-LCHlch(42.39, 81.63, 311.99°)
OKLaboklab(52.75% 0.1081 -0.1727)
OKLCHoklch(52.75% 0.204 302)
XYZxyz(21.8516, 12.7563, 57.1767)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340CA #87CA40
analogous
#4042CA #8340CA #C840CA
triadic
#8340CA #CA8340 #40CA83
tetradic
#8340CA #CA4042 #87CA40 #40CAC8
square
#8340CA #CA4042 #87CA40 #40CAC8
split-complementary
#8340CA #CAC840 #42CA40
monochromatic
#471F70 #652CA0 #8340CA #A270D7 #C1A0E5

Accessibility & contrast

On white

5.91
#8340CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8340CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340CA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340CA#FFFFFF#000000##FFFFFF
##8340CA1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#746080
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8340ca;
/* rgb */ color: rgb(131, 64, 202);
/* oklch */ color: oklch(52.7% 0.204 302.0);
Tailwind
colors: {
  custom: {
    50: '#ac7adb',
    500: '#8340ca',
    950: '#000000',
  },
}
SCSS
$custom: #8340ca;
$custom-light: #ac7adb;
$custom-dark: #000000;
JSON
{
  "hex": "#8340ca",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 269.13,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52746,
    "c": 0.20373,
    "h": 302
  },
  "luminance": 0.12756
}

Semantic roles & 50–950 ramp

primary
#8340CA
secondary
#B4D195
accent
#E04896
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8340CA

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

Preview Lab → · Contrast checker → · Palette generator →

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