#6841BB#6841BB

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

Color values

HEX#6841BB
RGBrgb(104, 65, 187)
HSLhsl(259, 48%, 49%)
HSVhsv(259, 65%, 73%)
CMYKcmyk(44.4%, 65.2%, 0%, 26.7%)
CIE-LABlab(38.39, 44.84, -58.56)
CIE-LCHlch(38.39, 73.75, 307.44°)
OKLaboklab(48.83% 0.0716 -0.1674)
OKLCHoklch(48.83% 0.182 293.2)
XYZxyz(16.5664, 10.3110, 48.1214)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841BB #94BB41
analogous
#4157BB #6841BB #A541BB
triadic
#6841BB #BB6841 #41BB68
tetradic
#6841BB #BB4157 #94BB41 #41BBA5
square
#6841BB #BB4157 #94BB41 #41BBA5
split-complementary
#6841BB #BBA541 #57BB41
monochromatic
#352160 #4F318E #6841BB #8B6DCC #AF9ADC

Accessibility & contrast

On white

6.86
#6841BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6841BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841BB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841BB#FFFFFF#000000##FFFFFF
##6841BB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#505E78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6841bb;
/* rgb */ color: rgb(104, 65, 187);
/* oklch */ color: oklch(48.8% 0.182 293.2);
Tailwind
colors: {
  custom: {
    50: '#9a78d0',
    500: '#6841bb',
    950: '#000000',
  },
}
SCSS
$custom: #6841bb;
$custom-light: #9a78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6841bb",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 259.18,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4883,
    "c": 0.18205,
    "h": 293.2
  },
  "luminance": 0.10312
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6841BB

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

Preview Lab → · Contrast checker → · Palette generator →

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