#6740E7#6740E7

#6740E7 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.3% C 0.235 H 285.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#6740E7
RGBrgb(103, 64, 231)
HSLhsl(254, 78%, 58%)
HSVhsv(254, 72%, 91%)
CMYKcmyk(55.4%, 72.3%, 0%, 9.4%)
CIE-LABlab(41.72, 57.49, -78.53)
CIE-LCHlch(41.72, 97.32, 306.21°)
OKLaboklab(52.3% 0.0635 -0.226)
OKLCHoklch(52.3% 0.235 285.7)
XYZxyz(21.8464, 12.3186, 76.8124)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740E7 #C0E740
analogous
#406CE7 #6740E7 #BA40E7
triadic
#6740E7 #E76740 #40E767
tetradic
#6740E7 #E7406C #C0E740 #40E7BA
square
#6740E7 #E7406C #C0E740 #40E7BA
split-complementary
#6740E7 #E7BA40 #6CE740
monochromatic
#331399 #451AD0 #6740E7 #9276EE #BEADF5

Accessibility & contrast

On white

6.06
#6740E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#6740E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740E7
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740E7#FFFFFF#000000##FFFFFF
##6740E71.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005DE4
Tritanopia (blue-blind)
#2A6E90
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6740e7;
/* rgb */ color: rgb(103, 64, 231);
/* oklch */ color: oklch(52.3% 0.235 285.7);
Tailwind
colors: {
  custom: {
    50: '#9f79f0',
    500: '#6740e7',
    950: '#000000',
  },
}
SCSS
$custom: #6740e7;
$custom-light: #9f79f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6740e7",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 254.012,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.52296,
    "c": 0.23477,
    "h": 285.7
  },
  "luminance": 0.1232
}

Semantic roles & 50–950 ramp

primary
#6740E7
secondary
#D3E3A0
accent
#F434C7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6740E7

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

Preview Lab → · Contrast checker → · Palette generator →

#6740E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva