#7340BE#7340BE

#7340BE is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.1% C 0.188 H 297.8°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7340BE
RGBrgb(115, 64, 190)
HSLhsl(264, 50%, 50%)
HSVhsv(264, 66%, 75%)
CMYKcmyk(39.5%, 66.3%, 0%, 25.5%)
CIE-LABlab(39.63, 48.39, -58.26)
CIE-LCHlch(39.63, 75.73, 309.71°)
OKLaboklab(50.07% 0.0876 -0.1661)
OKLCHoklch(50.07% 0.188 297.8)
XYZxyz(18.1955, 11.0291, 49.8754)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340BE #8BBE40
analogous
#404CBE #7340BE #B240BE
triadic
#7340BE #BE7340 #40BE73
tetradic
#7340BE #BE404C #8BBE40 #40BEB2
square
#7340BE #BE404C #8BBE40 #40BEB2
split-complementary
#7340BE #BEB240 #4CBE40
monochromatic
#3C2162 #573190 #7340BE #946DCE #B69BDD

Accessibility & contrast

On white

6.55
#7340BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7340BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340BE
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340BE#FFFFFF#000000##FFFFFF
##7340BE1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#615D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7340be;
/* rgb */ color: rgb(115, 64, 190);
/* oklch */ color: oklch(50.1% 0.188 297.8);
Tailwind
colors: {
  custom: {
    50: '#a178d2',
    500: '#7340be',
    950: '#000000',
  },
}
SCSS
$custom: #7340be;
$custom-light: #a178d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7340be",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 264.286,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50067,
    "c": 0.18782,
    "h": 297.8
  },
  "luminance": 0.11029
}

Semantic roles & 50–950 ramp

primary
#7340BE
secondary
#B2C990
accent
#D94FA1
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7340BE

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

Preview Lab → · Contrast checker → · Palette generator →

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