#6740AC#6740AC

#6740AC is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.165 H 296.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#6740AC
RGBrgb(103, 64, 172)
HSLhsl(262, 46%, 46%)
HSVhsv(262, 63%, 67%)
CMYKcmyk(40.1%, 62.8%, 0%, 32.5%)
CIE-LABlab(36.98, 41.05, -51.98)
CIE-LCHlch(36.98, 66.24, 308.30°)
OKLaboklab(47.44% 0.0727 -0.1481)
OKLCHoklch(47.44% 0.165 296.1)
XYZxyz(14.8714, 9.5286, 40.0774)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740AC #85AC40
analogous
#404FAC #6740AC #9D40AC
triadic
#6740AC #AC6740 #40AC67
tetradic
#6740AC #AC404F #85AC40 #40AC9D
square
#6740AC #AC404F #85AC40 #40AC9D
split-complementary
#6740AC #AC9D40 #4FAC40
monochromatic
#321F53 #4C2F7F #6740AC #8764C5 #AA91D6

Accessibility & contrast

On white

7.23
#6740AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6740AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6740AC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740AC#FFFFFF#000000##FFFFFF
##6740AC1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#0056AA
Tritanopia (blue-blind)
#565870
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6740ac;
/* rgb */ color: rgb(103, 64, 172);
/* oklch */ color: oklch(47.4% 0.165 296.1);
Tailwind
colors: {
  custom: {
    50: '#9777c5',
    500: '#6740ac',
    950: '#000000',
  },
}
SCSS
$custom: #6740ac;
$custom-light: #9777c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6740ac",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 261.667,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47436,
    "c": 0.16496,
    "h": 296.1
  },
  "luminance": 0.09529
}

Semantic roles & 50–950 ramp

primary
#6740AC
secondary
#ACC187
accent
#D552A6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6740AC

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

Preview Lab → · Contrast checker → · Palette generator →

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