#7340CF#7340CF

#7340CF is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.207 H 294.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7340CF
RGBrgb(115, 64, 207)
HSLhsl(261, 60%, 53%)
HSVhsv(261, 69%, 81%)
CMYKcmyk(44.4%, 69.1%, 0%, 18.8%)
CIE-LABlab(40.92, 52.85, -66.04)
CIE-LCHlch(40.92, 84.58, 308.67°)
OKLaboklab(51.4% 0.0851 -0.189)
OKLCHoklch(51.4% 0.207 294.2)
XYZxyz(20.1631, 11.8161, 60.2378)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340CF #9CCF40
analogous
#4054CF #7340CF #BB40CF
triadic
#7340CF #CF7340 #40CF73
tetradic
#7340CF #CF4054 #9CCF40 #40CFBB
square
#7340CF #CF4054 #9CCF40 #40CFBB
split-complementary
#7340CF #CFBB40 #54CF40
monochromatic
#3E1E77 #572AA8 #7340CF #9771DB #BBA2E8

Accessibility & contrast

On white

6.24
#7340CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7340CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7340CF#FFFFFF#000000##FFFFFF
##7340CF1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#596483
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7340cf;
/* rgb */ color: rgb(115, 64, 207);
/* oklch */ color: oklch(51.4% 0.207 294.2);
Tailwind
colors: {
  custom: {
    50: '#a379df',
    500: '#7340cf',
    950: '#000000',
  },
}
SCSS
$custom: #7340cf;
$custom-light: #a379df;
$custom-dark: #000000;
JSON
{
  "hex": "#7340cf",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 261.399,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51398,
    "c": 0.20729,
    "h": 294.2
  },
  "luminance": 0.11817
}

Semantic roles & 50–950 ramp

primary
#7340CF
secondary
#BED497
accent
#E345AB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340CF

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

Preview Lab → · Contrast checker → · Palette generator →

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