#7340B9#7340B9

#7340B9 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.182 H 299.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7340B9
RGBrgb(115, 64, 185)
HSLhsl(265, 49%, 49%)
HSVhsv(265, 65%, 73%)
CMYKcmyk(37.8%, 65.4%, 0%, 27.5%)
CIE-LABlab(39.27, 47.09, -55.91)
CIE-LCHlch(39.27, 73.10, 310.10°)
OKLaboklab(49.69% 0.0882 -0.1592)
OKLCHoklch(49.69% 0.182 299)
XYZxyz(17.6584, 10.8142, 47.0466)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340B9 #86B940
analogous
#404AB9 #7340B9 #B040B9
triadic
#7340B9 #B97340 #40B973
tetradic
#7340B9 #B9404A #86B940 #40B9B0
square
#7340B9 #B9404A #86B940 #40B9B0
split-complementary
#7340B9 #B9B040 #4AB940
monochromatic
#3A215E #57308C #7340B9 #936BCC #B498DB

Accessibility & contrast

On white

6.64
#7340B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7340B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340B9
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340B9#FFFFFF#000000##FFFFFF
##7340B91.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#635C77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7340b9;
/* rgb */ color: rgb(115, 64, 185);
/* oklch */ color: oklch(49.7% 0.182 299.0);
Tailwind
colors: {
  custom: {
    50: '#a078cf',
    500: '#7340b9',
    950: '#000000',
  },
}
SCSS
$custom: #7340b9;
$custom-light: #a078cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7340b9",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 265.289,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49691,
    "c": 0.18202,
    "h": 299
  },
  "luminance": 0.10814
}

Semantic roles & 50–950 ramp

primary
#7340B9
secondary
#AFC78E
accent
#D8509F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7340B9

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

Preview Lab → · Contrast checker → · Palette generator →

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