#7340C6#7340C6

#7340C6 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.197 H 296.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7340C6
RGBrgb(115, 64, 198)
HSLhsl(263, 54%, 51%)
HSVhsv(263, 68%, 78%)
CMYKcmyk(41.9%, 67.7%, 0%, 22.4%)
CIE-LABlab(40.23, 50.48, -61.96)
CIE-LCHlch(40.23, 79.92, 309.17°)
OKLaboklab(50.68% 0.0866 -0.177)
OKLCHoklch(50.68% 0.197 296.1)
XYZxyz(19.0940, 11.3884, 54.6073)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C6 #93C640
analogous
#4050C6 #7340C6 #B640C6
triadic
#7340C6 #C67340 #40C673
tetradic
#7340C6 #C64050 #93C640 #40C6B6
square
#7340C6 #C64050 #93C640 #40C6B6
split-complementary
#7340C6 #C6B640 #50C640
monochromatic
#3D206C #572E9B #7340C6 #966FD4 #B89EE2

Accessibility & contrast

On white

6.41
#7340C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7340C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340C6
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340C6#FFFFFF#000000##FFFFFF
##7340C61.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#5D607E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7340c6;
/* rgb */ color: rgb(115, 64, 198);
/* oklch */ color: oklch(50.7% 0.197 296.1);
Tailwind
colors: {
  custom: {
    50: '#a278d8',
    500: '#7340c6',
    950: '#000000',
  },
}
SCSS
$custom: #7340c6;
$custom-light: #a278d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c6",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 262.836,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50684,
    "c": 0.19703,
    "h": 296.1
  },
  "luminance": 0.11389
}

Semantic roles & 50–950 ramp

primary
#7340C6
secondary
#B8CE93
accent
#DD4AA5
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340C6

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

Preview Lab → · Contrast checker → · Palette generator →

#7340C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva