#7340C1#7340C1

#7340C1 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.3% C 0.191 H 297.1°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7340C1
RGBrgb(115, 64, 193)
HSLhsl(264, 51%, 50%)
HSVhsv(264, 67%, 76%)
CMYKcmyk(40.4%, 66.8%, 0%, 24.3%)
CIE-LABlab(39.85, 49.17, -59.65)
CIE-LCHlch(39.85, 77.30, 309.50°)
OKLaboklab(50.3% 0.0872 -0.1702)
OKLCHoklch(50.3% 0.191 297.1)
XYZxyz(18.5268, 11.1616, 51.6200)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C1 #8EC140
analogous
#404DC1 #7340C1 #B340C1
triadic
#7340C1 #C17340 #40C173
tetradic
#7340C1 #C1404D #8EC140 #40C1B3
square
#7340C1 #C1404D #8EC140 #40C1B3
split-complementary
#7340C1 #C1B340 #4DC140
monochromatic
#3C2166 #573094 #7340C1 #956ED0 #B79CDF

Accessibility & contrast

On white

6.50
#7340C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7340C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7340C1#FFFFFF#000000##FFFFFF
##7340C11.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#605E7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7340c1;
/* rgb */ color: rgb(115, 64, 193);
/* oklch */ color: oklch(50.3% 0.191 297.1);
Tailwind
colors: {
  custom: {
    50: '#a178d5',
    500: '#7340c1',
    950: '#000000',
  },
}
SCSS
$custom: #7340c1;
$custom-light: #a178d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c1",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 263.721,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50296,
    "c": 0.19128,
    "h": 297.1
  },
  "luminance": 0.11162
}

Semantic roles & 50–950 ramp

primary
#7340C1
secondary
#B4CB92
accent
#DA4DA3
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7340C1

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

Preview Lab → · Contrast checker → · Palette generator →

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