#6740E2#6740E2

#6740E2 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.9% C 0.229 H 286.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#6740E2
RGBrgb(103, 64, 226)
HSLhsl(254, 74%, 57%)
HSVhsv(254, 72%, 89%)
CMYKcmyk(54.4%, 71.7%, 0%, 11.4%)
CIE-LABlab(41.28, 56.09, -76.40)
CIE-LCHlch(41.28, 94.78, 306.29°)
OKLaboklab(51.85% 0.0646 -0.2198)
OKLCHoklch(51.85% 0.229 286.4)
XYZxyz(21.1503, 12.0402, 73.1463)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740E2 #BBE240
analogous
#406AE2 #6740E2 #B840E2
triadic
#6740E2 #E26740 #40E267
tetradic
#6740E2 #E2406A #BBE240 #40E2B8
square
#6740E2 #E2406A #BBE240 #40E2B8
split-complementary
#6740E2 #E2B840 #6AE240
monochromatic
#341692 #471EC7 #6740E2 #9175EA #BCAAF2

Accessibility & contrast

On white

6.16
#6740E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#6740E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740E2
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740E2#FFFFFF#000000##FFFFFF
##6740E21.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#005DDF
Tritanopia (blue-blind)
#316C8D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6740e2;
/* rgb */ color: rgb(103, 64, 226);
/* oklch */ color: oklch(51.9% 0.229 286.4);
Tailwind
colors: {
  custom: {
    50: '#9e78ec',
    500: '#6740e2',
    950: '#000000',
  },
}
SCSS
$custom: #6740e2;
$custom-light: #9e78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6740e2",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 254.444,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51853,
    "c": 0.22909,
    "h": 286.4
  },
  "luminance": 0.12041
}

Semantic roles & 50–950 ramp

primary
#6740E2
secondary
#D0E09E
accent
#F038C4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6740E2

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

Preview Lab → · Contrast checker → · Palette generator →

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