#7340AA#7340AA

#7340AA is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.164 H 302.9°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7340AA
RGBrgb(115, 64, 170)
HSLhsl(269, 45%, 46%)
HSVhsv(269, 62%, 67%)
CMYKcmyk(32.4%, 62.4%, 0%, 33.3%)
CIE-LABlab(38.22, 43.26, -48.72)
CIE-LCHlch(38.22, 65.15, 311.60°)
OKLaboklab(48.61% 0.0893 -0.1381)
OKLCHoklch(48.61% 0.164 302.9)
XYZxyz(16.1577, 10.2139, 39.1427)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340AA #77AA40
analogous
#4042AA #7340AA #A840AA
triadic
#7340AA #AA7340 #40AA73
tetradic
#7340AA #AA4042 #77AA40 #40AAA8
square
#7340AA #AA4042 #77AA40 #40AAA8
split-complementary
#7340AA #AAA840 #42AA40
monochromatic
#371F51 #552F7E #7340AA #9263C4 #B18FD5

Accessibility & contrast

On white

6.90
#7340AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7340AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7340AA#FFFFFF#000000##FFFFFF
##7340AA1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#215AA8
Tritanopia (blue-blind)
#68566F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7340aa;
/* rgb */ color: rgb(115, 64, 170);
/* oklch */ color: oklch(48.6% 0.164 302.9);
Tailwind
colors: {
  custom: {
    50: '#9f77c4',
    500: '#7340aa',
    950: '#000000',
  },
}
SCSS
$custom: #7340aa;
$custom-light: #9f77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7340aa",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 268.868,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48606,
    "c": 0.16446,
    "h": 302.9
  },
  "luminance": 0.10214
}

Semantic roles & 50–950 ramp

primary
#7340AA
secondary
#A4C086
accent
#D55396
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7340AA

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

Preview Lab → · Contrast checker → · Palette generator →

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