#6740B9#6740B9

#6740B9 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.4% C 0.181 H 293.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#6740B9
RGBrgb(103, 64, 185)
HSLhsl(259, 49%, 49%)
HSVhsv(259, 65%, 73%)
CMYKcmyk(44.3%, 65.4%, 0%, 27.5%)
CIE-LABlab(37.94, 44.63, -58.13)
CIE-LCHlch(37.94, 73.29, 307.52°)
OKLaboklab(48.43% 0.0715 -0.1662)
OKLCHoklch(48.43% 0.181 293.3)
XYZxyz(16.1815, 10.0527, 46.9773)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740B9 #92B940
analogous
#4056B9 #6740B9 #A440B9
triadic
#6740B9 #B96740 #40B967
tetradic
#6740B9 #B94056 #92B940 #40B9A4
square
#6740B9 #B94056 #92B940 #40B9A4
split-complementary
#6740B9 #B9A440 #56B940
monochromatic
#34215E #4E308C #6740B9 #8A6BCC #AE98DB

Accessibility & contrast

On white

6.98
#6740B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6740B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740B9
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740B9#FFFFFF#000000##FFFFFF
##6740B91.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#505D77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6740b9;
/* rgb */ color: rgb(103, 64, 185);
/* oklch */ color: oklch(48.4% 0.181 293.3);
Tailwind
colors: {
  custom: {
    50: '#9977cf',
    500: '#6740b9',
    950: '#000000',
  },
}
SCSS
$custom: #6740b9;
$custom-light: #9977cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6740b9",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 259.339,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48428,
    "c": 0.18089,
    "h": 293.3
  },
  "luminance": 0.10053
}

Semantic roles & 50–950 ramp

primary
#6740B9
secondary
#B5C78E
accent
#D850AC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6740B9

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

Preview Lab → · Contrast checker → · Palette generator →

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