#6740C8#6740C8

#6740C8 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.6% C 0.199 H 290.4°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#6740C8
RGBrgb(103, 64, 200)
HSLhsl(257, 55%, 52%)
HSVhsv(257, 68%, 78%)
CMYKcmyk(48.5%, 68%, 0%, 21.6%)
CIE-LABlab(39.10, 48.81, -65.00)
CIE-LCHlch(39.10, 81.29, 306.90°)
OKLaboklab(49.63% 0.0695 -0.1864)
OKLCHoklch(49.63% 0.199 290.4)
XYZxyz(17.8493, 10.7198, 55.7610)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740C8 #A1C840
analogous
#405DC8 #6740C8 #AB40C8
triadic
#6740C8 #C86740 #40C867
tetradic
#6740C8 #C8405D #A1C840 #40C8AB
square
#6740C8 #C8405D #A1C840 #40C8AB
split-complementary
#6740C8 #C8AB40 #5DC840
monochromatic
#36206E #4D2D9D #6740C8 #8D70D6 #B39FE3

Accessibility & contrast

On white

6.68
#6740C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6740C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740C8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740C8#FFFFFF#000000##FFFFFF
##6740C81.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#47627F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6740c8;
/* rgb */ color: rgb(103, 64, 200);
/* oklch */ color: oklch(49.6% 0.199 290.4);
Tailwind
colors: {
  custom: {
    50: '#9b78da',
    500: '#6740c8',
    950: '#000000',
  },
}
SCSS
$custom: #6740c8;
$custom-light: #9b78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6740c8",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 257.206,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49632,
    "c": 0.19888,
    "h": 290.4
  },
  "luminance": 0.1072
}

Semantic roles & 50–950 ramp

primary
#6740C8
secondary
#BFD094
accent
#DF49B4
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6740C8

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

Preview Lab → · Contrast checker → · Palette generator →

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