#8340C8#8340C8

#8340C8 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.6% C 0.202 H 302.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8340C8
RGBrgb(131, 64, 200)
HSLhsl(270, 55%, 52%)
HSVhsv(270, 68%, 78%)
CMYKcmyk(34.5%, 68%, 0%, 21.6%)
CIE-LABlab(42.25, 54.12, -59.75)
CIE-LCHlch(42.25, 80.62, 312.17°)
OKLaboklab(52.6% 0.1084 -0.17)
OKLCHoklch(52.6% 0.202 302.5)
XYZxyz(21.6163, 12.6622, 55.9376)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8340C8 #85C840
analogous
#4041C8 #8340C8 #C740C8
triadic
#8340C8 #C88340 #40C883
tetradic
#8340C8 #C84041 #85C840 #40C8C7
square
#8340C8 #C84041 #85C840 #40C8C7
split-complementary
#8340C8 #C8C740 #41C840
monochromatic
#46206E #652D9D #8340C8 #A270D6 #C19FE3

Accessibility & contrast

On white

5.94
#8340C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8340C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8340C8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8340C8#FFFFFF#000000##FFFFFF
##8340C81.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#755F7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8340c8;
/* rgb */ color: rgb(131, 64, 200);
/* oklch */ color: oklch(52.6% 0.202 302.5);
Tailwind
colors: {
  custom: {
    50: '#ac7ada',
    500: '#8340c8',
    950: '#000000',
  },
}
SCSS
$custom: #8340c8;
$custom-light: #ac7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8340c8",
  "rgb": {
    "r": 131,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 269.559,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52597,
    "c": 0.20157,
    "h": 302.5
  },
  "luminance": 0.12662
}

Semantic roles & 50–950 ramp

primary
#8340C8
secondary
#B2D094
accent
#DF4995
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8340C8

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

Preview Lab → · Contrast checker → · Palette generator →

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