#7340C9#7340C9

#7340C9 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.200 H 295.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7340C9
RGBrgb(115, 64, 201)
HSLhsl(262, 56%, 52%)
HSVhsv(262, 68%, 79%)
CMYKcmyk(42.8%, 68.2%, 0%, 21.2%)
CIE-LABlab(40.46, 51.26, -63.33)
CIE-LCHlch(40.46, 81.48, 308.99°)
OKLaboklab(50.92% 0.0861 -0.181)
OKLCHoklch(50.92% 0.2 295.4)
XYZxyz(19.4434, 11.5282, 56.4478)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340C9 #96C940
analogous
#4052C9 #7340C9 #B840C9
triadic
#7340C9 #C97340 #40C973
tetradic
#7340C9 #C94052 #96C940 #40C9B8
square
#7340C9 #C94052 #96C940 #40C9B8
split-complementary
#7340C9 #C9B840 #52C940
monochromatic
#3D1F6F #572D9F #7340C9 #9670D6 #B99FE4

Accessibility & contrast

On white

6.35
#7340C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7340C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7340C9#FFFFFF#000000##FFFFFF
##7340C91.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#5C617F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7340c9;
/* rgb */ color: rgb(115, 64, 201);
/* oklch */ color: oklch(50.9% 0.200 295.4);
Tailwind
colors: {
  custom: {
    50: '#a278da',
    500: '#7340c9',
    950: '#000000',
  },
}
SCSS
$custom: #7340c9;
$custom-light: #a278da;
$custom-dark: #000000;
JSON
{
  "hex": "#7340c9",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 262.336,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5092,
    "c": 0.20046,
    "h": 295.4
  },
  "luminance": 0.11529
}

Semantic roles & 50–950 ramp

primary
#7340C9
secondary
#BAD094
accent
#DF49A7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340C9

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

Preview Lab → · Contrast checker → · Palette generator →

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