#7340BA#7340BA

#7340BA is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.183 H 298.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7340BA
RGBrgb(115, 64, 186)
HSLhsl(265, 49%, 49%)
HSVhsv(265, 66%, 73%)
CMYKcmyk(38.2%, 65.6%, 0%, 27.1%)
CIE-LABlab(39.34, 47.35, -56.39)
CIE-LCHlch(39.34, 73.63, 310.02°)
OKLaboklab(49.77% 0.0881 -0.1606)
OKLCHoklch(49.77% 0.183 298.7)
XYZxyz(17.7643, 10.8566, 47.6045)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340BA #87BA40
analogous
#404ABA #7340BA #B040BA
triadic
#7340BA #BA7340 #40BA73
tetradic
#7340BA #BA404A #87BA40 #40BAB0
square
#7340BA #BA404A #87BA40 #40BAB0
split-complementary
#7340BA #BAB040 #4ABA40
monochromatic
#3B215F #57308C #7340BA #946BCC #B599DC

Accessibility & contrast

On white

6.62
#7340BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7340BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340BA
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340BA#FFFFFF#000000##FFFFFF
##7340BA1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#635C77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7340ba;
/* rgb */ color: rgb(115, 64, 186);
/* oklch */ color: oklch(49.8% 0.183 298.7);
Tailwind
colors: {
  custom: {
    50: '#a178d0',
    500: '#7340ba',
    950: '#000000',
  },
}
SCSS
$custom: #7340ba;
$custom-light: #a178d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7340ba",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 265.082,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49765,
    "c": 0.18318,
    "h": 298.7
  },
  "luminance": 0.10857
}

Semantic roles & 50–950 ramp

primary
#7340BA
secondary
#B0C88E
accent
#D84F9F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7340BA

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

Preview Lab → · Contrast checker → · Palette generator →

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