#6840AE#6840AE

#6840AE is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.168 H 296.2°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#6840AE
RGBrgb(104, 64, 174)
HSLhsl(262, 46%, 47%)
HSVhsv(262, 63%, 68%)
CMYKcmyk(40.2%, 63.2%, 0%, 31.8%)
CIE-LABlab(37.24, 41.82, -52.76)
CIE-LCHlch(37.24, 67.32, 308.40°)
OKLaboklab(47.69% 0.0739 -0.1503)
OKLCHoklch(47.69% 0.168 296.2)
XYZxyz(15.1803, 9.6655, 41.1020)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840AE #86AE40
analogous
#404FAE #6840AE #9F40AE
triadic
#6840AE #AE6840 #40AE68
tetradic
#6840AE #AE404F #86AE40 #40AE9F
square
#6840AE #AE404F #86AE40 #40AE9F
split-complementary
#6840AE #AE9F40 #4FAE40
monochromatic
#331F55 #4D3081 #6840AE #8865C6 #AB92D7

Accessibility & contrast

On white

7.16
#6840AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6840AE#FFFFFF#000000##FFFFFF
##6840AE1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#575971
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6840ae;
/* rgb */ color: rgb(104, 64, 174);
/* oklch */ color: oklch(47.7% 0.168 296.2);
Tailwind
colors: {
  custom: {
    50: '#9877c7',
    500: '#6840ae',
    950: '#000000',
  },
}
SCSS
$custom: #6840ae;
$custom-light: #9877c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6840ae",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 261.818,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4769,
    "c": 0.16752,
    "h": 296.2
  },
  "luminance": 0.09666
}

Semantic roles & 50–950 ramp

primary
#6840AE
secondary
#ADC288
accent
#D652A6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6840AE

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

Preview Lab → · Contrast checker → · Palette generator →

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