#6740A2#6740A2

#6740A2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.7% C 0.152 H 298.7°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#6740A2
RGBrgb(103, 64, 162)
HSLhsl(264, 43%, 44%)
HSVhsv(264, 60%, 64%)
CMYKcmyk(36.4%, 60.5%, 0%, 36.5%)
CIE-LABlab(36.29, 38.34, -47.12)
CIE-LCHlch(36.29, 60.75, 309.13°)
OKLaboklab(46.71% 0.0732 -0.1338)
OKLCHoklch(46.71% 0.153 298.7)
XYZxyz(13.9469, 9.1588, 35.2085)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740A2 #7BA240
analogous
#404AA2 #6740A2 #9840A2
triadic
#6740A2 #A26740 #40A267
tetradic
#6740A2 #A2404A #7BA240 #40A298
square
#6740A2 #A2404A #7BA240 #40A298
split-complementary
#6740A2 #A29840 #4AA240
monochromatic
#2F1D4A #4B2F76 #6740A2 #865FC0 #A78BD1

Accessibility & contrast

On white

7.42
#6740A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6740A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6740A2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740A2#FFFFFF#000000##FFFFFF
##6740A21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0255A5
Deuteranopia (green-blind)
#1C54A0
Tritanopia (blue-blind)
#5A556B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6740a2;
/* rgb */ color: rgb(103, 64, 162);
/* oklch */ color: oklch(46.7% 0.152 298.7);
Tailwind
colors: {
  custom: {
    50: '#9677be',
    500: '#6740a2',
    950: '#000000',
  },
}
SCSS
$custom: #6740a2;
$custom-light: #9677be;
$custom-dark: #000000;
JSON
{
  "hex": "#6740a2",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 263.878,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46709,
    "c": 0.1525,
    "h": 298.7
  },
  "luminance": 0.09159
}

Semantic roles & 50–950 ramp

primary
#6740A2
secondary
#A5BC82
accent
#D355A1
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6740A2

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

Preview Lab → · Contrast checker → · Palette generator →

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