#7340C3#7340C3

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

Color values

HEX#7340C3
RGBrgb(115, 64, 195)
HSLhsl(263, 52%, 51%)
HSVhsv(263, 67%, 76%)
CMYKcmyk(41%, 67.2%, 0%, 23.5%)
CIE-LABlab(40.00, 49.69, -60.58)
CIE-LCHlch(40.00, 78.35, 309.36°)
OKLaboklab(50.45% 0.087 -0.1729)
OKLCHoklch(50.45% 0.194 296.7)
XYZxyz(18.7514, 11.2514, 52.8030)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C3 #90C340
analogous
#404EC3 #7340C3 #B440C3
triadic
#7340C3 #C37340 #40C373
tetradic
#7340C3 #C3404E #90C340 #40C3B4
square
#7340C3 #C3404E #90C340 #40C3B4
split-complementary
#7340C3 #C3B440 #4EC340
monochromatic
#3C2168 #572F97 #7340C3 #956FD2 #B79DE0

Accessibility & contrast

On white

6.46
#7340C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7340C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340C3
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340C3#FFFFFF#000000##FFFFFF
##7340C31.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC7
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#5F5F7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7340c3;
/* rgb */ color: rgb(115, 64, 195);
/* oklch */ color: oklch(50.5% 0.194 296.7);
Tailwind
colors: {
  custom: {
    50: '#a178d6',
    500: '#7340c3',
    950: '#000000',
  },
}
SCSS
$custom: #7340c3;
$custom-light: #a178d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c3",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 263.359,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50451,
    "c": 0.19359,
    "h": 296.7
  },
  "luminance": 0.11252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7340C3

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

Preview Lab → · Contrast checker → · Palette generator →

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