#6841AF#6841AF

#6841AF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.9% C 0.167 H 295.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#6841AF
RGBrgb(104, 65, 175)
HSLhsl(261, 46%, 47%)
HSVhsv(261, 63%, 69%)
CMYKcmyk(40.6%, 62.9%, 0%, 31.4%)
CIE-LABlab(37.51, 41.53, -52.90)
CIE-LCHlch(37.51, 67.26, 308.14°)
OKLaboklab(47.92% 0.0727 -0.1507)
OKLCHoklch(47.92% 0.167 295.8)
XYZxyz(15.3351, 9.8185, 41.6363)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841AF #88AF41
analogous
#4151AF #6841AF #9F41AF
triadic
#6841AF #AF6841 #41AF68
tetradic
#6841AF #AF4151 #88AF41 #41AF9F
square
#6841AF #AF4151 #88AF41 #41AF9F
split-complementary
#6841AF #AF9F41 #51AF41
monochromatic
#332056 #4D3082 #6841AF #8967C6 #AB93D7

Accessibility & contrast

On white

7.09
#6841AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6841AF
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841AF#FFFFFF#000000##FFFFFF
##6841AF1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#565A72
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6841af;
/* rgb */ color: rgb(104, 65, 175);
/* oklch */ color: oklch(47.9% 0.167 295.8);
Tailwind
colors: {
  custom: {
    50: '#9878c8',
    500: '#6841af',
    950: '#000000',
  },
}
SCSS
$custom: #6841af;
$custom-light: #9878c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6841af",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 261.273,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47915,
    "c": 0.16736,
    "h": 295.8
  },
  "luminance": 0.09819
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6841AF

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

Preview Lab → · Contrast checker → · Palette generator →

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