#6740D4#6740D4

#6740D4 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.213 H 288.4°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#6740D4
RGBrgb(103, 64, 212)
HSLhsl(256, 63%, 54%)
HSVhsv(256, 70%, 83%)
CMYKcmyk(51.4%, 69.8%, 0%, 16.9%)
CIE-LABlab(40.09, 52.17, -70.34)
CIE-LCHlch(40.09, 87.58, 306.56°)
OKLaboklab(50.64% 0.0674 -0.202)
OKLCHoklch(50.64% 0.213 288.4)
XYZxyz(19.3071, 11.3029, 63.4390)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740D4 #ADD440
analogous
#4063D4 #6740D4 #B140D4
triadic
#6740D4 #D46740 #40D467
tetradic
#6740D4 #D44063 #ADD440 #40D4B1
square
#6740D4 #D44063 #ADD440 #40D4B1
split-complementary
#6740D4 #D4B140 #63D440
monochromatic
#361C7D #4B27AF #6740D4 #8F72DF #B7A4EA

Accessibility & contrast

On white

6.44
#6740D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6740D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740D4
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740D4#FFFFFF#000000##FFFFFF
##6740D41.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D8
Deuteranopia (green-blind)
#005BD1
Tritanopia (blue-blind)
#3E6785
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6740d4;
/* rgb */ color: rgb(103, 64, 212);
/* oklch */ color: oklch(50.6% 0.213 288.4);
Tailwind
colors: {
  custom: {
    50: '#9c78e2',
    500: '#6740d4',
    950: '#000000',
  },
}
SCSS
$custom: #6740d4;
$custom-light: #9c78e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6740d4",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 255.811,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50638,
    "c": 0.21297,
    "h": 288.4
  },
  "luminance": 0.11304
}

Semantic roles & 50–950 ramp

primary
#6740D4
secondary
#C7D798
accent
#E642BB
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6740D4

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

Preview Lab → · Contrast checker → · Palette generator →

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