#6840AA#6840AA

#6840AA is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.163 H 297.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#6840AA
RGBrgb(104, 64, 170)
HSLhsl(263, 45%, 46%)
HSVhsv(263, 62%, 67%)
CMYKcmyk(38.8%, 62.4%, 0%, 33.3%)
CIE-LABlab(36.95, 40.73, -50.84)
CIE-LCHlch(36.95, 65.14, 308.70°)
OKLaboklab(47.39% 0.0742 -0.1447)
OKLCHoklch(47.39% 0.163 297.2)
XYZxyz(14.7962, 9.5119, 39.0788)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840AA #82AA40
analogous
#404DAA #6840AA #9D40AA
triadic
#6840AA #AA6840 #40AA68
tetradic
#6840AA #AA404D #82AA40 #40AA9D
square
#6840AA #AA404D #82AA40 #40AA9D
split-complementary
#6840AA #AA9D40 #4DAA40
monochromatic
#321F51 #4D2F7E #6840AA #8863C4 #AA8FD5

Accessibility & contrast

On white

7.24
#6840AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6840AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6840AA#FFFFFF#000000##FFFFFF
##6840AA1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#0B56A8
Tritanopia (blue-blind)
#58576F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6840aa;
/* rgb */ color: rgb(104, 64, 170);
/* oklch */ color: oklch(47.4% 0.163 297.2);
Tailwind
colors: {
  custom: {
    50: '#9877c4',
    500: '#6840aa',
    950: '#000000',
  },
}
SCSS
$custom: #6840aa;
$custom-light: #9877c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6840aa",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 262.642,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47394,
    "c": 0.16259,
    "h": 297.2
  },
  "luminance": 0.09512
}

Semantic roles & 50–950 ramp

primary
#6840AA
secondary
#AAC086
accent
#D553A4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6840AA

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

Preview Lab → · Contrast checker → · Palette generator →

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