#6740BD#6740BD

#6740BD is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.186 H 292.5°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#6740BD
RGBrgb(103, 64, 189)
HSLhsl(259, 49%, 50%)
HSVhsv(259, 66%, 74%)
CMYKcmyk(45.5%, 66.1%, 0%, 25.9%)
CIE-LABlab(38.24, 45.74, -59.99)
CIE-LCHlch(38.24, 75.44, 307.33°)
OKLaboklab(48.74% 0.071 -0.1716)
OKLCHoklch(48.74% 0.186 292.5)
XYZxyz(16.6097, 10.2240, 49.2325)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740BD #96BD40
analogous
#4058BD #6740BD #A640BD
triadic
#6740BD #BD6740 #40BD67
tetradic
#6740BD #BD4058 #96BD40 #40BDA6
square
#6740BD #BD4058 #96BD40 #40BDA6
split-complementary
#6740BD #BDA640 #58BD40
monochromatic
#352162 #4E318F #6740BD #8B6DCD #AF9ADD

Accessibility & contrast

On white

6.90
#6740BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6740BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740BD
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740BD#FFFFFF#000000##FFFFFF
##6740BD1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#4E5E79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6740bd;
/* rgb */ color: rgb(103, 64, 189);
/* oklch */ color: oklch(48.7% 0.186 292.5);
Tailwind
colors: {
  custom: {
    50: '#9977d2',
    500: '#6740bd',
    950: '#000000',
  },
}
SCSS
$custom: #6740bd;
$custom-light: #9977d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6740bd",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 258.72,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48743,
    "c": 0.18573,
    "h": 292.5
  },
  "luminance": 0.10224
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6740BD

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

Preview Lab → · Contrast checker → · Palette generator →

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