#7340C0#7340C0

#7340C0 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.190 H 297.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7340C0
RGBrgb(115, 64, 192)
HSLhsl(264, 50%, 50%)
HSVhsv(264, 67%, 75%)
CMYKcmyk(40.1%, 66.7%, 0%, 24.7%)
CIE-LABlab(39.78, 48.91, -59.19)
CIE-LCHlch(39.78, 76.78, 309.57°)
OKLaboklab(50.22% 0.0874 -0.1689)
OKLCHoklch(50.22% 0.19 297.4)
XYZxyz(18.4156, 11.1171, 51.0345)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C0 #8DC040
analogous
#404DC0 #7340C0 #B340C0
triadic
#7340C0 #C07340 #40C073
tetradic
#7340C0 #C0404D #8DC040 #40C0B3
square
#7340C0 #C0404D #8DC040 #40C0B3
split-complementary
#7340C0 #C0B340 #4DC040
monochromatic
#3C2164 #573092 #7340C0 #956ECF #B69CDE

Accessibility & contrast

On white

6.51
#7340C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7340C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340C0
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340C0#FFFFFF#000000##FFFFFF
##7340C01.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC4
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#605E7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7340c0;
/* rgb */ color: rgb(115, 64, 192);
/* oklch */ color: oklch(50.2% 0.190 297.4);
Tailwind
colors: {
  custom: {
    50: '#a178d4',
    500: '#7340c0',
    950: '#000000',
  },
}
SCSS
$custom: #7340c0;
$custom-light: #a178d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c0",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 263.906,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5022,
    "c": 0.19013,
    "h": 297.4
  },
  "luminance": 0.11117
}

Semantic roles & 50–950 ramp

primary
#7340C0
secondary
#B4CB91
accent
#DA4EA2
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7340C0

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

Preview Lab → · Contrast checker → · Palette generator →

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