#7340C4#7340C4

#7340C4 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.195 H 296.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7340C4
RGBrgb(115, 64, 196)
HSLhsl(263, 53%, 51%)
HSVhsv(263, 67%, 77%)
CMYKcmyk(41.3%, 67.3%, 0%, 23.1%)
CIE-LABlab(40.08, 49.95, -61.04)
CIE-LCHlch(40.08, 78.87, 309.30°)
OKLaboklab(50.53% 0.0868 -0.1743)
OKLCHoklch(50.53% 0.195 296.5)
XYZxyz(18.8648, 11.2968, 53.4004)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C4 #91C440
analogous
#404FC4 #7340C4 #B540C4
triadic
#7340C4 #C47340 #40C473
tetradic
#7340C4 #C4404F #91C440 #40C4B5
square
#7340C4 #C4404F #91C440 #40C4B5
split-complementary
#7340C4 #C4B540 #4FC440
monochromatic
#3D2069 #572F98 #7340C4 #956FD2 #B89EE1

Accessibility & contrast

On white

6.44
#7340C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7340C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340C4
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340C4#FFFFFF#000000##FFFFFF
##7340C41.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#5E607D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7340c4;
/* rgb */ color: rgb(115, 64, 196);
/* oklch */ color: oklch(50.5% 0.195 296.5);
Tailwind
colors: {
  custom: {
    50: '#a278d7',
    500: '#7340c4',
    950: '#000000',
  },
}
SCSS
$custom: #7340c4;
$custom-light: #a278d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c4",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 263.182,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50528,
    "c": 0.19473,
    "h": 296.5
  },
  "luminance": 0.11297
}

Semantic roles & 50–950 ramp

primary
#7340C4
secondary
#B7CD93
accent
#DC4CA4
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7340C4

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

Preview Lab → · Contrast checker → · Palette generator →

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