#6740D1#6740D1

#6740D1 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.209 H 288.9°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#6740D1
RGBrgb(103, 64, 209)
HSLhsl(256, 61%, 54%)
HSVhsv(256, 69%, 82%)
CMYKcmyk(50.7%, 69.4%, 0%, 18%)
CIE-LABlab(39.84, 51.33, -69.02)
CIE-LCHlch(39.84, 86.01, 306.64°)
OKLaboklab(50.38% 0.0679 -0.1981)
OKLCHoklch(50.38% 0.209 288.9)
XYZxyz(18.9322, 11.1530, 61.4644)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740D1 #AAD140
analogous
#4061D1 #6740D1 #AF40D1
triadic
#6740D1 #D16740 #40D167
tetradic
#6740D1 #D14061 #AAD140 #40D1AF
square
#6740D1 #D14061 #AAD140 #40D1AF
split-complementary
#6740D1 #D1AF40 #61D140
monochromatic
#361D79 #4C29AB #6740D1 #8E71DD #B6A3E9

Accessibility & contrast

On white

6.50
#6740D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6740D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740D1
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740D1#FFFFFF#000000##FFFFFF
##6740D11.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#005ACE
Tritanopia (blue-blind)
#416584
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6740d1;
/* rgb */ color: rgb(103, 64, 209);
/* oklch */ color: oklch(50.4% 0.209 288.9);
Tailwind
colors: {
  custom: {
    50: '#9c78e0',
    500: '#6740d1',
    950: '#000000',
  },
}
SCSS
$custom: #6740d1;
$custom-light: #9c78e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6740d1",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 256.138,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50383,
    "c": 0.20947,
    "h": 288.9
  },
  "luminance": 0.11154
}

Semantic roles & 50–950 ramp

primary
#6740D1
secondary
#C5D597
accent
#E444B9
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6740D1

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

Preview Lab → · Contrast checker → · Palette generator →

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