#6841BA#6841BA

#6841BA is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.181 H 293.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#6841BA
RGBrgb(104, 65, 186)
HSLhsl(259, 48%, 49%)
HSVhsv(259, 65%, 73%)
CMYKcmyk(44.1%, 65.1%, 0%, 27.1%)
CIE-LABlab(38.32, 44.56, -58.09)
CIE-LCHlch(38.32, 73.21, 307.49°)
OKLaboklab(48.75% 0.0717 -0.166)
OKLCHoklch(48.75% 0.181 293.4)
XYZxyz(16.4597, 10.2683, 47.5596)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841BA #93BA41
analogous
#4157BA #6841BA #A541BA
triadic
#6841BA #BA6841 #41BA68
tetradic
#6841BA #BA4157 #93BA41 #41BAA5
square
#6841BA #BA4157 #93BA41 #41BAA5
split-complementary
#6841BA #BAA541 #57BA41
monochromatic
#35215F #4F318D #6841BA #8B6CCC #AF9ADC

Accessibility & contrast

On white

6.88
#6841BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6841BA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841BA#FFFFFF#000000##FFFFFF
##6841BA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6841ba;
/* rgb */ color: rgb(104, 65, 186);
/* oklch */ color: oklch(48.8% 0.181 293.4);
Tailwind
colors: {
  custom: {
    50: '#9978d0',
    500: '#6841ba',
    950: '#000000',
  },
}
SCSS
$custom: #6841ba;
$custom-light: #9978d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6841ba",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 259.339,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48753,
    "c": 0.18084,
    "h": 293.4
  },
  "luminance": 0.10269
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6841BA

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

Preview Lab → · Contrast checker → · Palette generator →

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