#6740D2#6740D2

#6740D2 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.211 H 288.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#6740D2
RGBrgb(103, 64, 210)
HSLhsl(256, 62%, 54%)
HSVhsv(256, 70%, 82%)
CMYKcmyk(51%, 69.5%, 0%, 17.6%)
CIE-LABlab(39.92, 51.61, -69.46)
CIE-LCHlch(39.92, 86.54, 306.61°)
OKLaboklab(50.47% 0.0678 -0.1994)
OKLCHoklch(50.47% 0.211 288.8)
XYZxyz(19.0564, 11.2026, 62.1185)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740D2 #ABD240
analogous
#4062D2 #6740D2 #B040D2
triadic
#6740D2 #D26740 #40D267
tetradic
#6740D2 #D24062 #ABD240 #40D2B0
square
#6740D2 #D24062 #ABD240 #40D2B0
split-complementary
#6740D2 #D2B040 #62D240
monochromatic
#361D7B #4C29AC #6740D2 #8E72DE #B6A3E9

Accessibility & contrast

On white

6.48
#6740D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6740D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740D2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740D2#FFFFFF#000000##FFFFFF
##6740D21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#406684
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6740d2;
/* rgb */ color: rgb(103, 64, 210);
/* oklch */ color: oklch(50.5% 0.211 288.8);
Tailwind
colors: {
  custom: {
    50: '#9c78e1',
    500: '#6740d2',
    950: '#000000',
  },
}
SCSS
$custom: #6740d2;
$custom-light: #9c78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6740d2",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 256.027,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50468,
    "c": 0.21064,
    "h": 288.8
  },
  "luminance": 0.11203
}

Semantic roles & 50–950 ramp

primary
#6740D2
secondary
#C5D698
accent
#E543BA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6740D2

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

Preview Lab → · Contrast checker → · Palette generator →

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