#7340D9#7340D9

#7340D9 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.219 H 292.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7340D9
RGBrgb(115, 64, 217)
HSLhsl(260, 67%, 55%)
HSVhsv(260, 71%, 85%)
CMYKcmyk(47%, 70.5%, 0%, 14.9%)
CIE-LABlab(41.72, 55.50, -70.49)
CIE-LCHlch(41.72, 89.72, 308.21°)
OKLaboklab(52.22% 0.0833 -0.2021)
OKLCHoklch(52.22% 0.219 292.4)
XYZxyz(21.4245, 12.3207, 66.8815)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340D9 #A6D940
analogous
#405AD9 #7340D9 #BF40D9
triadic
#7340D9 #D97340 #40D973
tetradic
#7340D9 #D9405A #A6D940 #40D9BF
square
#7340D9 #D9405A #A6D940 #40D9BF
split-complementary
#7340D9 #D9BF40 #5AD940
monochromatic
#3E1A84 #5524B7 #7340D9 #9873E3 #BEA6ED

Accessibility & contrast

On white

6.06
#7340D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7340D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340D9
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340D9#FFFFFF#000000##FFFFFF
##7340D91.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#005FD6
Tritanopia (blue-blind)
#536788
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7340d9;
/* rgb */ color: rgb(115, 64, 217);
/* oklch */ color: oklch(52.2% 0.219 292.4);
Tailwind
colors: {
  custom: {
    50: '#a479e6',
    500: '#7340d9',
    950: '#000000',
  },
}
SCSS
$custom: #7340d9;
$custom-light: #a479e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7340d9",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 260,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.52215,
    "c": 0.21857,
    "h": 292.4
  },
  "luminance": 0.12321
}

Semantic roles & 50–950 ramp

primary
#7340D9
secondary
#C5DA9A
accent
#EA3EB1
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7340D9

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

Preview Lab → · Contrast checker → · Palette generator →

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