#6740BB#6740BB

#6740BB is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.6% C 0.183 H 292.9°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6740BB
RGBrgb(103, 64, 187)
HSLhsl(259, 49%, 49%)
HSVhsv(259, 66%, 73%)
CMYKcmyk(44.9%, 65.8%, 0%, 26.7%)
CIE-LABlab(38.09, 45.19, -59.06)
CIE-LCHlch(38.09, 74.36, 307.42°)
OKLaboklab(48.59% 0.0713 -0.1689)
OKLCHoklch(48.59% 0.183 292.9)
XYZxyz(16.3941, 10.1377, 48.0971)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740BB #94BB40
analogous
#4057BB #6740BB #A540BB
triadic
#6740BB #BB6740 #40BB67
tetradic
#6740BB #BB4057 #94BB40 #40BBA5
square
#6740BB #BB4057 #94BB40 #40BBA5
split-complementary
#6740BB #BBA540 #57BB40
monochromatic
#352160 #4E308D #6740BB #8A6CCD #AE99DC

Accessibility & contrast

On white

6.94
#6740BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6740BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740BB
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740BB#FFFFFF#000000##FFFFFF
##6740BB1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#4F5D78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6740bb;
/* rgb */ color: rgb(103, 64, 187);
/* oklch */ color: oklch(48.6% 0.183 292.9);
Tailwind
colors: {
  custom: {
    50: '#9977d0',
    500: '#6740bb',
    950: '#000000',
  },
}
SCSS
$custom: #6740bb;
$custom-light: #9977d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6740bb",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 259.024,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48585,
    "c": 0.18331,
    "h": 292.9
  },
  "luminance": 0.10138
}

Semantic roles & 50–950 ramp

primary
#6740BB
secondary
#B6C88F
accent
#D94FAD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6740BB

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

Preview Lab → · Contrast checker → · Palette generator →

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