#6740DF#6740DF

#6740DF is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.6% C 0.226 H 286.8°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#6740DF
RGBrgb(103, 64, 223)
HSLhsl(255, 71%, 56%)
HSVhsv(255, 71%, 87%)
CMYKcmyk(53.8%, 71.3%, 0%, 12.5%)
CIE-LABlab(41.02, 55.25, -75.12)
CIE-LCHlch(41.02, 93.25, 306.34°)
OKLaboklab(51.59% 0.0652 -0.216)
OKLCHoklch(51.59% 0.226 286.8)
XYZxyz(20.7422, 11.8770, 70.9973)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740DF #B8DF40
analogous
#4069DF #6740DF #B740DF
triadic
#6740DF #DF6740 #40DF67
tetradic
#6740DF #DF4069 #B8DF40 #40DFB7
square
#6740DF #DF4069 #B8DF40 #40DFB7
split-complementary
#6740DF #DFB740 #69DF40
monochromatic
#34188D #4820C1 #6740DF #9174E8 #BAA9F1

Accessibility & contrast

On white

6.22
#6740DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6740DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740DF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740DF#FFFFFF#000000##FFFFFF
##6740DF1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005CDC
Tritanopia (blue-blind)
#346B8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6740df;
/* rgb */ color: rgb(103, 64, 223);
/* oklch */ color: oklch(51.6% 0.226 286.8);
Tailwind
colors: {
  custom: {
    50: '#9e78ea',
    500: '#6740df',
    950: '#000000',
  },
}
SCSS
$custom: #6740df;
$custom-light: #9e78ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6740df",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 254.717,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51589,
    "c": 0.22567,
    "h": 286.8
  },
  "luminance": 0.11878
}

Semantic roles & 50–950 ramp

primary
#6740DF
secondary
#CEDE9D
accent
#EE3AC2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6740DF

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

Preview Lab → · Contrast checker → · Palette generator →

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