#6740B0#6740B0

#6740B0 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.170 H 295.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#6740B0
RGBrgb(103, 64, 176)
HSLhsl(261, 47%, 47%)
HSVhsv(261, 64%, 69%)
CMYKcmyk(41.5%, 63.6%, 0%, 31%)
CIE-LABlab(37.27, 42.15, -53.89)
CIE-LCHlch(37.27, 68.42, 308.03°)
OKLaboklab(47.74% 0.0724 -0.1537)
OKLCHoklch(47.74% 0.17 295.2)
XYZxyz(15.2613, 9.6846, 42.1311)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740B0 #89B040
analogous
#4051B0 #6740B0 #9F40B0
triadic
#6740B0 #B06740 #40B067
tetradic
#6740B0 #B04051 #89B040 #40B09F
square
#6740B0 #B04051 #89B040 #40B09F
split-complementary
#6740B0 #B09F40 #51B040
monochromatic
#321F56 #4D3083 #6740B0 #8866C7 #AB93D8

Accessibility & contrast

On white

7.15
#6740B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#6740B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6740B0
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740B0#FFFFFF#000000##FFFFFF
##6740B01.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#545A72
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6740b0;
/* rgb */ color: rgb(103, 64, 176);
/* oklch */ color: oklch(47.7% 0.170 295.2);
Tailwind
colors: {
  custom: {
    50: '#9877c8',
    500: '#6740b0',
    950: '#000000',
  },
}
SCSS
$custom: #6740b0;
$custom-light: #9877c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6740b0",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 260.893,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47736,
    "c": 0.16989,
    "h": 295.2
  },
  "luminance": 0.09685
}

Semantic roles & 50–950 ramp

primary
#6740B0
secondary
#AFC389
accent
#D651A8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6740B0

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

Preview Lab → · Contrast checker → · Palette generator →

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