#7340C5#7340C5

#7340C5 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.6% C 0.196 H 296.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7340C5
RGBrgb(115, 64, 197)
HSLhsl(263, 53%, 51%)
HSVhsv(263, 68%, 77%)
CMYKcmyk(41.6%, 67.5%, 0%, 22.7%)
CIE-LABlab(40.15, 50.21, -61.50)
CIE-LCHlch(40.15, 79.39, 309.23°)
OKLaboklab(50.61% 0.0867 -0.1756)
OKLCHoklch(50.61% 0.196 296.3)
XYZxyz(18.9790, 11.3425, 54.0019)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C5 #92C540
analogous
#404FC5 #7340C5 #B640C5
triadic
#7340C5 #C57340 #40C573
tetradic
#7340C5 #C5404F #92C540 #40C5B6
square
#7340C5 #C5404F #92C540 #40C5B6
split-complementary
#7340C5 #C5B640 #4FC540
monochromatic
#3D206A #572F99 #7340C5 #956FD3 #B89EE2

Accessibility & contrast

On white

6.42
#7340C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7340C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340C5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340C5#FFFFFF#000000##FFFFFF
##7340C51.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#5E607D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7340c5;
/* rgb */ color: rgb(115, 64, 197);
/* oklch */ color: oklch(50.6% 0.196 296.3);
Tailwind
colors: {
  custom: {
    50: '#a278d7',
    500: '#7340c5',
    950: '#000000',
  },
}
SCSS
$custom: #7340c5;
$custom-light: #a278d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c5",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 263.008,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50606,
    "c": 0.19588,
    "h": 296.3
  },
  "luminance": 0.11343
}

Semantic roles & 50–950 ramp

primary
#7340C5
secondary
#B7CE93
accent
#DD4BA5
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340C5

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

Preview Lab → · Contrast checker → · Palette generator →

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