#6740B7#6740B7

#6740B7 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.178 H 293.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#6740B7
RGBrgb(103, 64, 183)
HSLhsl(260, 48%, 48%)
HSVhsv(260, 65%, 72%)
CMYKcmyk(43.7%, 65%, 0%, 28.2%)
CIE-LABlab(37.79, 44.08, -57.20)
CIE-LCHlch(37.79, 72.21, 307.62°)
OKLaboklab(48.27% 0.0717 -0.1634)
OKLCHoklch(48.27% 0.178 293.7)
XYZxyz(15.9718, 9.9688, 45.8732)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740B7 #90B740
analogous
#4054B7 #6740B7 #A240B7
triadic
#6740B7 #B76740 #40B767
tetradic
#6740B7 #B74054 #90B740 #40B7A2
square
#6740B7 #B74054 #90B740 #40B7A2
split-complementary
#6740B7 #B7A240 #54B740
monochromatic
#34205C #4D308A #6740B7 #8969CB #AD97DB

Accessibility & contrast

On white

7.01
#6740B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6740B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6740B7
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740B7#FFFFFF#000000##FFFFFF
##6740B71.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#515C76
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6740b7;
/* rgb */ color: rgb(103, 64, 183);
/* oklch */ color: oklch(48.3% 0.178 293.7);
Tailwind
colors: {
  custom: {
    50: '#9977cd',
    500: '#6740b7',
    950: '#000000',
  },
}
SCSS
$custom: #6740b7;
$custom-light: #9977cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6740b7",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 259.664,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.48272,
    "c": 0.17846,
    "h": 293.7
  },
  "luminance": 0.09969
}

Semantic roles & 50–950 ramp

primary
#6740B7
secondary
#B3C68D
accent
#D850AB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6740B7

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

Preview Lab → · Contrast checker → · Palette generator →

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