#7340CE#7340CE

#7340CE is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.206 H 294.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7340CE
RGBrgb(115, 64, 206)
HSLhsl(262, 59%, 53%)
HSVhsv(262, 69%, 81%)
CMYKcmyk(44.2%, 68.9%, 0%, 19.2%)
CIE-LABlab(40.84, 52.58, -65.59)
CIE-LCHlch(40.84, 84.07, 308.72°)
OKLaboklab(51.32% 0.0853 -0.1877)
OKLCHoklch(51.32% 0.206 294.4)
XYZxyz(20.0412, 11.7673, 59.5959)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340CE #9BCE40
analogous
#4054CE #7340CE #BA40CE
triadic
#7340CE #CE7340 #40CE73
tetradic
#7340CE #CE4054 #9BCE40 #40CEBA
square
#7340CE #CE4054 #9BCE40 #40CEBA
split-complementary
#7340CE #CEBA40 #54CE40
monochromatic
#3D1E75 #572BA6 #7340CE #9771DA #BAA1E7

Accessibility & contrast

On white

6.26
#7340CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7340CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7340CE#FFFFFF#000000##FFFFFF
##7340CE1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#596382
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7340ce;
/* rgb */ color: rgb(115, 64, 206);
/* oklch */ color: oklch(51.3% 0.206 294.4);
Tailwind
colors: {
  custom: {
    50: '#a379de',
    500: '#7340ce',
    950: '#000000',
  },
}
SCSS
$custom: #7340ce;
$custom-light: #a379de;
$custom-dark: #000000;
JSON
{
  "hex": "#7340ce",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 261.549,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51318,
    "c": 0.20616,
    "h": 294.4
  },
  "luminance": 0.11768
}

Semantic roles & 50–950 ramp

primary
#7340CE
secondary
#BED496
accent
#E245AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7340CE

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

Preview Lab → · Contrast checker → · Palette generator →

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