#7340AD#7340AD

#7340AD is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.168 H 302.1°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7340AD
RGBrgb(115, 64, 173)
HSLhsl(268, 46%, 46%)
HSVhsv(268, 63%, 68%)
CMYKcmyk(33.5%, 63%, 0%, 32.2%)
CIE-LABlab(38.43, 44.02, -50.18)
CIE-LCHlch(38.43, 66.75, 311.26°)
OKLaboklab(48.82% 0.0892 -0.1424)
OKLCHoklch(48.82% 0.168 302.1)
XYZxyz(16.4447, 10.3287, 40.6543)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340AD #7AAD40
analogous
#4044AD #7340AD #AA40AD
triadic
#7340AD #AD7340 #40AD73
tetradic
#7340AD #AD4044 #7AAD40 #40ADAA
square
#7340AD #AD4044 #7AAD40 #40ADAA
split-complementary
#7340AD #ADAA40 #44AD40
monochromatic
#381F54 #552F80 #7340AD #9264C6 #B191D6

Accessibility & contrast

On white

6.85
#7340AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7340AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340AD
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340AD#FFFFFF#000000##FFFFFF
##7340AD1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#1C5AAB
Tritanopia (blue-blind)
#675770
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7340ad;
/* rgb */ color: rgb(115, 64, 173);
/* oklch */ color: oklch(48.8% 0.168 302.1);
Tailwind
colors: {
  custom: {
    50: '#9f78c6',
    500: '#7340ad',
    950: '#000000',
  },
}
SCSS
$custom: #7340ad;
$custom-light: #9f78c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7340ad",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 268.073,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48817,
    "c": 0.16798,
    "h": 302.1
  },
  "luminance": 0.10329
}

Semantic roles & 50–950 ramp

primary
#7340AD
secondary
#A6C287
accent
#D65298
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7340AD

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

Preview Lab → · Contrast checker → · Palette generator →

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