#7340C2#7340C2

#7340C2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.4% C 0.192 H 296.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7340C2
RGBrgb(115, 64, 194)
HSLhsl(264, 52%, 51%)
HSVhsv(264, 67%, 76%)
CMYKcmyk(40.7%, 67%, 0%, 23.9%)
CIE-LABlab(39.93, 49.43, -60.12)
CIE-LCHlch(39.93, 77.83, 309.43°)
OKLaboklab(50.37% 0.0871 -0.1716)
OKLCHoklch(50.37% 0.192 296.9)
XYZxyz(18.6387, 11.2063, 52.2095)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C2 #8FC240
analogous
#404EC2 #7340C2 #B440C2
triadic
#7340C2 #C27340 #40C273
tetradic
#7340C2 #C2404E #8FC240 #40C2B4
square
#7340C2 #C2404E #8FC240 #40C2B4
split-complementary
#7340C2 #C2B440 #4EC240
monochromatic
#3C2167 #573095 #7340C2 #956ED1 #B79DE0

Accessibility & contrast

On white

6.48
#7340C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7340C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340C2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340C2#FFFFFF#000000##FFFFFF
##7340C21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7340c2;
/* rgb */ color: rgb(115, 64, 194);
/* oklch */ color: oklch(50.4% 0.192 296.9);
Tailwind
colors: {
  custom: {
    50: '#a178d5',
    500: '#7340c2',
    950: '#000000',
  },
}
SCSS
$custom: #7340c2;
$custom-light: #a178d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c2",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 263.538,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50373,
    "c": 0.19244,
    "h": 296.9
  },
  "luminance": 0.11207
}

Semantic roles & 50–950 ramp

primary
#7340C2
secondary
#B5CC92
accent
#DB4DA3
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7340C2

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

Preview Lab → · Contrast checker → · Palette generator →

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