#7340B5#7340B5

#7340B5 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.177 H 300.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7340B5
RGBrgb(115, 64, 181)
HSLhsl(266, 48%, 48%)
HSVhsv(266, 65%, 71%)
CMYKcmyk(36.5%, 64.6%, 0%, 29%)
CIE-LABlab(38.98, 46.06, -54.02)
CIE-LCHlch(38.98, 70.99, 310.45°)
OKLaboklab(49.4% 0.0886 -0.1537)
OKLCHoklch(49.4% 0.177 300)
XYZxyz(17.2421, 10.6477, 44.8539)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340B5 #82B540
analogous
#4047B5 #7340B5 #AD40B5
triadic
#7340B5 #B57340 #40B573
tetradic
#7340B5 #B54047 #82B540 #40B5AD
square
#7340B5 #B54047 #82B540 #40B5AD
split-complementary
#7340B5 #B5AD40 #47B540
monochromatic
#3A205B #563088 #7340B5 #9368CA #B396DA

Accessibility & contrast

On white

6.71
#7340B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7340B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340B5
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340B5#FFFFFF#000000##FFFFFF
##7340B51.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#065BB2
Tritanopia (blue-blind)
#645A75
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7340b5;
/* rgb */ color: rgb(115, 64, 181);
/* oklch */ color: oklch(49.4% 0.177 300.0);
Tailwind
colors: {
  custom: {
    50: '#a078cc',
    500: '#7340b5',
    950: '#000000',
  },
}
SCSS
$custom: #7340b5;
$custom-light: #a078cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7340b5",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 266.154,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49395,
    "c": 0.17736,
    "h": 300
  },
  "luminance": 0.10648
}

Semantic roles & 50–950 ramp

primary
#7340B5
secondary
#ACC58B
accent
#D7509D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7340B5

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

Preview Lab → · Contrast checker → · Palette generator →

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