#6740D3#6740D3

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

Color values

HEX#6740D3
RGBrgb(103, 64, 211)
HSLhsl(256, 63%, 54%)
HSVhsv(256, 70%, 83%)
CMYKcmyk(51.2%, 69.7%, 0%, 17.3%)
CIE-LABlab(40.00, 51.89, -69.90)
CIE-LCHlch(40.00, 87.06, 306.59°)
OKLaboklab(50.55% 0.0676 -0.2007)
OKLCHoklch(50.55% 0.212 288.6)
XYZxyz(19.1814, 11.2526, 62.7767)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740D3 #ACD340
analogous
#4063D3 #6740D3 #B040D3
triadic
#6740D3 #D36740 #40D367
tetradic
#6740D3 #D34063 #ACD340 #40D3B0
square
#6740D3 #D34063 #ACD340 #40D3B0
split-complementary
#6740D3 #D3B040 #63D340
monochromatic
#361D7C #4C28AE #6740D3 #8F72DE #B6A3EA

Accessibility & contrast

On white

6.46
#6740D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6740D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740D3
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740D3#FFFFFF#000000##FFFFFF
##6740D31.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D7
Deuteranopia (green-blind)
#005AD0
Tritanopia (blue-blind)
#3F6685
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6740d3;
/* rgb */ color: rgb(103, 64, 211);
/* oklch */ color: oklch(50.6% 0.212 288.6);
Tailwind
colors: {
  custom: {
    50: '#9c78e2',
    500: '#6740d3',
    950: '#000000',
  },
}
SCSS
$custom: #6740d3;
$custom-light: #9c78e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6740d3",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 255.918,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50553,
    "c": 0.21181,
    "h": 288.6
  },
  "luminance": 0.11254
}

Semantic roles & 50–950 ramp

primary
#6740D3
secondary
#C6D798
accent
#E642BA
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #6740D3

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

Preview Lab → · Contrast checker → · Palette generator →

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