#6740D9#6740D9

#6740D9 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.1% C 0.219 H 287.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6740D9
RGBrgb(103, 64, 217)
HSLhsl(255, 67%, 55%)
HSVhsv(255, 71%, 85%)
CMYKcmyk(52.5%, 70.5%, 0%, 14.9%)
CIE-LABlab(40.51, 53.57, -72.53)
CIE-LCHlch(40.51, 90.17, 306.45°)
OKLaboklab(51.07% 0.0664 -0.2084)
OKLCHoklch(51.07% 0.219 287.7)
XYZxyz(19.9476, 11.5591, 66.8122)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740D9 #B2D940
analogous
#4066D9 #6740D9 #B340D9
triadic
#6740D9 #D96740 #40D967
tetradic
#6740D9 #D94066 #B2D940 #40D9B3
square
#6740D9 #D94066 #B2D940 #40D9B3
split-complementary
#6740D9 #D9B340 #66D940
monochromatic
#351A84 #4A24B7 #6740D9 #9073E3 #B8A6ED

Accessibility & contrast

On white

6.34
#6740D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6740D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740D9
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740D9#FFFFFF#000000##FFFFFF
##6740D91.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DE
Deuteranopia (green-blind)
#005BD6
Tritanopia (blue-blind)
#3A6888
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6740d9;
/* rgb */ color: rgb(103, 64, 217);
/* oklch */ color: oklch(51.1% 0.219 287.7);
Tailwind
colors: {
  custom: {
    50: '#9d78e6',
    500: '#6740d9',
    950: '#000000',
  },
}
SCSS
$custom: #6740d9;
$custom-light: #9d78e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6740d9",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 255.294,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51067,
    "c": 0.21877,
    "h": 287.7
  },
  "luminance": 0.1156
}

Semantic roles & 50–950 ramp

primary
#6740D9
secondary
#CADA9A
accent
#EA3EBE
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6740D9

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

Preview Lab → · Contrast checker → · Palette generator →

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