#7340D2#7340D2

#7340D2 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.211 H 293.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7340D2
RGBrgb(115, 64, 210)
HSLhsl(261, 62%, 54%)
HSVhsv(261, 70%, 82%)
CMYKcmyk(45.2%, 69.5%, 0%, 17.6%)
CIE-LABlab(41.16, 53.64, -67.39)
CIE-LCHlch(41.16, 86.13, 308.52°)
OKLaboklab(51.64% 0.0846 -0.193)
OKLCHoklch(51.64% 0.211 293.7)
XYZxyz(20.5333, 11.9642, 62.1877)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340D2 #9FD240
analogous
#4056D2 #7340D2 #BC40D2
triadic
#7340D2 #D27340 #40D273
tetradic
#7340D2 #D24056 #9FD240 #40D2BC
square
#7340D2 #D24056 #9FD240 #40D2BC
split-complementary
#7340D2 #D2BC40 #56D240
monochromatic
#3E1D7B #5729AC #7340D2 #9772DE #BCA3E9

Accessibility & contrast

On white

6.19
#7340D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7340D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340D2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340D2#FFFFFF#000000##FFFFFF
##7340D21.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#576584
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7340d2;
/* rgb */ color: rgb(115, 64, 210);
/* oklch */ color: oklch(51.6% 0.211 293.7);
Tailwind
colors: {
  custom: {
    50: '#a379e1',
    500: '#7340d2',
    950: '#000000',
  },
}
SCSS
$custom: #7340d2;
$custom-light: #a379e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7340d2",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 260.959,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51641,
    "c": 0.21069,
    "h": 293.7
  },
  "luminance": 0.11965
}

Semantic roles & 50–950 ramp

primary
#7340D2
secondary
#C0D698
accent
#E543AC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340D2

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

Preview Lab → · Contrast checker → · Palette generator →

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