#6841AE#6841AE

#6841AE is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.8% C 0.166 H 296.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#6841AE
RGBrgb(104, 65, 174)
HSLhsl(261, 46%, 47%)
HSVhsv(261, 63%, 68%)
CMYKcmyk(40.2%, 62.6%, 0%, 31.8%)
CIE-LABlab(37.44, 41.26, -52.42)
CIE-LCHlch(37.44, 66.71, 308.20°)
OKLaboklab(47.84% 0.0728 -0.1493)
OKLCHoklch(47.84% 0.166 296)
XYZxyz(15.2372, 9.7793, 41.1210)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841AE #87AE41
analogous
#4150AE #6841AE #9F41AE
triadic
#6841AE #AE6841 #41AE68
tetradic
#6841AE #AE4150 #87AE41 #41AE9F
square
#6841AE #AE4150 #87AE41 #41AE9F
split-complementary
#6841AE #AE9F41 #50AE41
monochromatic
#332055 #4D3081 #6841AE #8866C6 #AB93D7

Accessibility & contrast

On white

7.10
#6841AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#6841AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6841AE
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841AE#FFFFFF#000000##FFFFFF
##6841AE1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0057AC
Tritanopia (blue-blind)
#565971
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6841ae;
/* rgb */ color: rgb(104, 65, 174);
/* oklch */ color: oklch(47.8% 0.166 296.0);
Tailwind
colors: {
  custom: {
    50: '#9878c7',
    500: '#6841ae',
    950: '#000000',
  },
}
SCSS
$custom: #6841ae;
$custom-light: #9878c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6841ae",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 174
  },
  "hsl": {
    "h": 261.468,
    "s": 45.607,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47841,
    "c": 0.16613,
    "h": 296
  },
  "luminance": 0.0978
}

Semantic roles & 50–950 ramp

primary
#6841AE
secondary
#AEC289
accent
#D553A6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6841AE

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

Preview Lab → · Contrast checker → · Palette generator →

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