#6740A4#6740A4

#6740A4 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.9% C 0.155 H 298.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#6740A4
RGBrgb(103, 64, 164)
HSLhsl(263, 44%, 45%)
HSVhsv(263, 61%, 64%)
CMYKcmyk(37.2%, 61%, 0%, 35.7%)
CIE-LABlab(36.42, 38.88, -48.10)
CIE-LCHlch(36.42, 61.85, 308.95°)
OKLaboklab(46.85% 0.0731 -0.1367)
OKLCHoklch(46.85% 0.155 298.1)
XYZxyz(14.1261, 9.2305, 36.1522)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740A4 #7DA440
analogous
#404BA4 #6740A4 #9940A4
triadic
#6740A4 #A46740 #40A467
tetradic
#6740A4 #A4404B #7DA440 #40A499
square
#6740A4 #A4404B #7DA440 #40A499
split-complementary
#6740A4 #A49940 #4BA440
monochromatic
#301E4C #4B2F78 #6740A4 #8660C1 #A88CD2

Accessibility & contrast

On white

7.38
#6740A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6740A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6740A4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740A4#FFFFFF#000000##FFFFFF
##6740A41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#1855A2
Tritanopia (blue-blind)
#59556C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6740a4;
/* rgb */ color: rgb(103, 64, 164);
/* oklch */ color: oklch(46.9% 0.155 298.1);
Tailwind
colors: {
  custom: {
    50: '#9777c0',
    500: '#6740a4',
    950: '#000000',
  },
}
SCSS
$custom: #6740a4;
$custom-light: #9777c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6740a4",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 263.4,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46852,
    "c": 0.155,
    "h": 298.1
  },
  "luminance": 0.09231
}

Semantic roles & 50–950 ramp

primary
#6740A4
secondary
#A6BD83
accent
#D454A2
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6740A4

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

Preview Lab → · Contrast checker → · Palette generator →

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