#6841AD#6841AD

#6841AD is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.165 H 296.2°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#6841AD
RGBrgb(104, 65, 173)
HSLhsl(262, 45%, 47%)
HSVhsv(262, 62%, 68%)
CMYKcmyk(39.9%, 62.4%, 0%, 32.2%)
CIE-LABlab(37.37, 40.99, -51.94)
CIE-LCHlch(37.37, 66.16, 308.28°)
OKLaboklab(47.77% 0.0728 -0.1479)
OKLCHoklch(47.77% 0.165 296.2)
XYZxyz(15.1401, 9.7405, 40.6095)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841AD #86AD41
analogous
#4150AD #6841AD #9E41AD
triadic
#6841AD #AD6841 #41AD68
tetradic
#6841AD #AD4150 #86AD41 #41AD9E
square
#6841AD #AD4150 #86AD41 #41AD9E
split-complementary
#6841AD #AD9E41 #50AD41
monochromatic
#332054 #4D3081 #6841AD #8866C5 #AB92D6

Accessibility & contrast

On white

7.12
#6841AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6841AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6841AD
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841AD#FFFFFF#000000##FFFFFF
##6841AD1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B0
Deuteranopia (green-blind)
#0456AB
Tritanopia (blue-blind)
#575971
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6841ad;
/* rgb */ color: rgb(104, 65, 173);
/* oklch */ color: oklch(47.8% 0.165 296.2);
Tailwind
colors: {
  custom: {
    50: '#9877c6',
    500: '#6841ad',
    950: '#000000',
  },
}
SCSS
$custom: #6841ad;
$custom-light: #9877c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6841ad",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 173
  },
  "hsl": {
    "h": 261.667,
    "s": 45.378,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47767,
    "c": 0.16489,
    "h": 296.2
  },
  "luminance": 0.09741
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6841AD

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

Preview Lab → · Contrast checker → · Palette generator →

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