#6740BE#6740BE

#6740BE is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.187 H 292.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#6740BE
RGBrgb(103, 64, 190)
HSLhsl(259, 50%, 50%)
HSVhsv(259, 66%, 75%)
CMYKcmyk(45.8%, 66.3%, 0%, 25.5%)
CIE-LABlab(38.32, 46.02, -60.45)
CIE-LCHlch(38.32, 75.97, 307.28°)
OKLaboklab(48.82% 0.0709 -0.173)
OKLCHoklch(48.82% 0.187 292.3)
XYZxyz(16.7186, 10.2675, 49.8062)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740BE #97BE40
analogous
#4058BE #6740BE #A640BE
triadic
#6740BE #BE6740 #40BE67
tetradic
#6740BE #BE4058 #97BE40 #40BEA6
square
#6740BE #BE4058 #97BE40 #40BEA6
split-complementary
#6740BE #BEA640 #58BE40
monochromatic
#352162 #4E3190 #6740BE #8B6DCE #B09BDD

Accessibility & contrast

On white

6.88
#6740BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6740BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740BE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740BE#FFFFFF#000000##FFFFFF
##6740BE1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC2
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#4D5E79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6740be;
/* rgb */ color: rgb(103, 64, 190);
/* oklch */ color: oklch(48.8% 0.187 292.3);
Tailwind
colors: {
  custom: {
    50: '#9977d2',
    500: '#6740be',
    950: '#000000',
  },
}
SCSS
$custom: #6740be;
$custom-light: #9977d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6740be",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 258.571,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48823,
    "c": 0.18693,
    "h": 292.3
  },
  "luminance": 0.10268
}

Semantic roles & 50–950 ramp

primary
#6740BE
secondary
#B8C990
accent
#D94FAE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6740BE

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

Preview Lab → · Contrast checker → · Palette generator →

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