#6840AD#6840AD

#6840AD is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.166 H 296.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#6840AD
RGBrgb(104, 64, 173)
HSLhsl(262, 46%, 46%)
HSVhsv(262, 63%, 68%)
CMYKcmyk(39.9%, 63%, 0%, 32.2%)
CIE-LABlab(37.16, 41.55, -52.28)
CIE-LCHlch(37.16, 66.78, 308.47°)
OKLaboklab(47.62% 0.074 -0.1489)
OKLCHoklch(47.62% 0.166 296.4)
XYZxyz(15.0832, 9.6267, 40.5905)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840AD #85AD40
analogous
#404FAD #6840AD #9F40AD
triadic
#6840AD #AD6840 #40AD68
tetradic
#6840AD #AD404F #85AD40 #40AD9F
square
#6840AD #AD404F #85AD40 #40AD9F
split-complementary
#6840AD #AD9F40 #4FAD40
monochromatic
#321F54 #4D2F80 #6840AD #8864C6 #AA91D6

Accessibility & contrast

On white

7.18
#6840AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6840AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6840AD
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840AD#FFFFFF#000000##FFFFFF
##6840AD1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B0
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#575870
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6840ad;
/* rgb */ color: rgb(104, 64, 173);
/* oklch */ color: oklch(47.6% 0.166 296.4);
Tailwind
colors: {
  custom: {
    50: '#9877c6',
    500: '#6840ad',
    950: '#000000',
  },
}
SCSS
$custom: #6840ad;
$custom-light: #9877c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6840ad",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 262.018,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47615,
    "c": 0.1663,
    "h": 296.4
  },
  "luminance": 0.09627
}

Semantic roles & 50–950 ramp

primary
#6840AD
secondary
#ACC287
accent
#D652A5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6840AD

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

Preview Lab → · Contrast checker → · Palette generator →

#6840AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva