#7340D3#7340D3

#7340D3 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.212 H 293.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7340D3
RGBrgb(115, 64, 211)
HSLhsl(261, 63%, 54%)
HSVhsv(261, 70%, 83%)
CMYKcmyk(45.5%, 69.7%, 0%, 17.3%)
CIE-LABlab(41.24, 53.90, -67.83)
CIE-LCHlch(41.24, 86.64, 308.47°)
OKLaboklab(51.72% 0.0844 -0.1943)
OKLCHoklch(51.72% 0.212 293.5)
XYZxyz(20.6583, 12.0142, 62.8459)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340D3 #A0D340
analogous
#4057D3 #7340D3 #BC40D3
triadic
#7340D3 #D37340 #40D373
tetradic
#7340D3 #D34057 #A0D340 #40D3BC
square
#7340D3 #D34057 #A0D340 #40D3BC
split-complementary
#7340D3 #D3BC40 #57D340
monochromatic
#3E1D7C #5628AE #7340D3 #9772DE #BCA3EA

Accessibility & contrast

On white

6.17
#7340D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7340D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7340D3#FFFFFF#000000##FFFFFF
##7340D31.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#005FD0
Tritanopia (blue-blind)
#576585
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7340d3;
/* rgb */ color: rgb(115, 64, 211);
/* oklch */ color: oklch(51.7% 0.212 293.5);
Tailwind
colors: {
  custom: {
    50: '#a379e2',
    500: '#7340d3',
    950: '#000000',
  },
}
SCSS
$custom: #7340d3;
$custom-light: #a379e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7340d3",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 260.816,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51722,
    "c": 0.21182,
    "h": 293.5
  },
  "luminance": 0.12015
}

Semantic roles & 50–950 ramp

primary
#7340D3
secondary
#C1D798
accent
#E642AD
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7340D3

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

Preview Lab → · Contrast checker → · Palette generator →

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