#6740BA#6740BA

#6740BA is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.182 H 293.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#6740BA
RGBrgb(103, 64, 186)
HSLhsl(259, 49%, 49%)
HSVhsv(259, 66%, 73%)
CMYKcmyk(44.6%, 65.6%, 0%, 27.1%)
CIE-LABlab(38.01, 44.91, -58.60)
CIE-LCHlch(38.01, 73.83, 307.47°)
OKLaboklab(48.51% 0.0714 -0.1675)
OKLCHoklch(48.51% 0.182 293.1)
XYZxyz(16.2874, 10.0950, 47.5352)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740BA #93BA40
analogous
#4056BA #6740BA #A440BA
triadic
#6740BA #BA6740 #40BA67
tetradic
#6740BA #BA4056 #93BA40 #40BAA4
square
#6740BA #BA4056 #93BA40 #40BAA4
split-complementary
#6740BA #BAA440 #56BA40
monochromatic
#35215F #4E308C #6740BA #8A6BCC #AE99DC

Accessibility & contrast

On white

6.96
#6740BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6740BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740BA
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740BA#FFFFFF#000000##FFFFFF
##6740BA1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#4F5D77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6740ba;
/* rgb */ color: rgb(103, 64, 186);
/* oklch */ color: oklch(48.5% 0.182 293.1);
Tailwind
colors: {
  custom: {
    50: '#9977d0',
    500: '#6740ba',
    950: '#000000',
  },
}
SCSS
$custom: #6740ba;
$custom-light: #9977d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6740ba",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 259.18,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48506,
    "c": 0.18211,
    "h": 293.1
  },
  "luminance": 0.10096
}

Semantic roles & 50–950 ramp

primary
#6740BA
secondary
#B5C88E
accent
#D84FAD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6740BA

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

Preview Lab → · Contrast checker → · Palette generator →

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