#6841B9#6841B9

#6841B9 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.180 H 293.6°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#6841B9
RGBrgb(104, 65, 185)
HSLhsl(260, 48%, 49%)
HSVhsv(260, 65%, 73%)
CMYKcmyk(43.8%, 64.9%, 0%, 27.5%)
CIE-LABlab(38.24, 44.28, -57.63)
CIE-LCHlch(38.24, 72.68, 307.54°)
OKLaboklab(48.68% 0.0718 -0.1646)
OKLCHoklch(48.68% 0.18 293.6)
XYZxyz(16.3538, 10.2260, 47.0017)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841B9 #92B941
analogous
#4156B9 #6841B9 #A441B9
triadic
#6841B9 #B96841 #41B968
tetradic
#6841B9 #B94156 #92B941 #41B9A4
square
#6841B9 #B94156 #92B941 #41B9A4
split-complementary
#6841B9 #B9A441 #56B941
monochromatic
#35215E #4F318C #6841B9 #8B6CCB #AF99DB

Accessibility & contrast

On white

6.90
#6841B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6841B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841B9
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841B9#FFFFFF#000000##FFFFFF
##6841B91.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#515D77
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6841b9;
/* rgb */ color: rgb(104, 65, 185);
/* oklch */ color: oklch(48.7% 0.180 293.6);
Tailwind
colors: {
  custom: {
    50: '#9978cf',
    500: '#6841b9',
    950: '#000000',
  },
}
SCSS
$custom: #6841b9;
$custom-light: #9978cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6841b9",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 185
  },
  "hsl": {
    "h": 259.5,
    "s": 48,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48675,
    "c": 0.17962,
    "h": 293.6
  },
  "luminance": 0.10226
}

Semantic roles & 50–950 ramp

primary
#6841B9
secondary
#B5C78F
accent
#D850AC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6841B9

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

Preview Lab → · Contrast checker → · Palette generator →

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