#7340C7#7340C7

#7340C7 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.8% C 0.198 H 295.8°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7340C7
RGBrgb(115, 64, 199)
HSLhsl(263, 55%, 52%)
HSVhsv(263, 68%, 78%)
CMYKcmyk(42.2%, 67.8%, 0%, 22%)
CIE-LABlab(40.30, 50.74, -62.42)
CIE-LCHlch(40.30, 80.44, 309.11°)
OKLaboklab(50.76% 0.0864 -0.1783)
OKLCHoklch(50.76% 0.198 295.8)
XYZxyz(19.2097, 11.4347, 55.2168)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C7 #94C740
analogous
#4051C7 #7340C7 #B740C7
triadic
#7340C7 #C77340 #40C773
tetradic
#7340C7 #C74051 #94C740 #40C7B7
square
#7340C7 #C74051 #94C740 #40C7B7
split-complementary
#7340C7 #C7B740 #51C740
monochromatic
#3D206D #572E9C #7340C7 #966FD5 #B89FE3

Accessibility & contrast

On white

6.39
#7340C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7340C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340C7
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340C7#FFFFFF#000000##FFFFFF
##7340C71.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#5D617E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7340c7;
/* rgb */ color: rgb(115, 64, 199);
/* oklch */ color: oklch(50.8% 0.198 295.8);
Tailwind
colors: {
  custom: {
    50: '#a278d9',
    500: '#7340c7',
    950: '#000000',
  },
}
SCSS
$custom: #7340c7;
$custom-light: #a278d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c7",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 262.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50762,
    "c": 0.19818,
    "h": 295.8
  },
  "luminance": 0.11435
}

Semantic roles & 50–950 ramp

primary
#7340C7
secondary
#B9CF94
accent
#DE4AA6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340C7

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

Preview Lab → · Contrast checker → · Palette generator →

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