#6740C5#6740C5

#6740C5 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.195 H 291.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#6740C5
RGBrgb(103, 64, 197)
HSLhsl(258, 53%, 51%)
HSVhsv(258, 68%, 77%)
CMYKcmyk(47.7%, 67.5%, 0%, 22.7%)
CIE-LABlab(38.87, 47.97, -63.65)
CIE-LCHlch(38.87, 79.70, 307.00°)
OKLaboklab(49.39% 0.0699 -0.1824)
OKLCHoklch(49.39% 0.195 291)
XYZxyz(17.5021, 10.5809, 53.9326)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740C5 #9EC540
analogous
#405BC5 #6740C5 #A940C5
triadic
#6740C5 #C56740 #40C567
tetradic
#6740C5 #C5405B #9EC540 #40C5A9
square
#6740C5 #C5405B #9EC540 #40C5A9
split-complementary
#6740C5 #C5A940 #5BC540
monochromatic
#36206A #4E2F99 #6740C5 #8C6FD3 #B29EE2

Accessibility & contrast

On white

6.74
#6740C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6740C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740C5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740C5#FFFFFF#000000##FFFFFF
##6740C51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#49617D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6740c5;
/* rgb */ color: rgb(103, 64, 197);
/* oklch */ color: oklch(49.4% 0.195 291.0);
Tailwind
colors: {
  custom: {
    50: '#9a77d8',
    500: '#6740c5',
    950: '#000000',
  },
}
SCSS
$custom: #6740c5;
$custom-light: #9a77d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6740c5",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 257.594,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49387,
    "c": 0.19532,
    "h": 291
  },
  "luminance": 0.10582
}

Semantic roles & 50–950 ramp

primary
#6740C5
secondary
#BDCE93
accent
#DD4BB2
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6740C5

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

Preview Lab → · Contrast checker → · Palette generator →

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