#6841BD#6841BD

#6841BD is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.184 H 292.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#6841BD
RGBrgb(104, 65, 189)
HSLhsl(259, 49%, 50%)
HSVhsv(259, 66%, 74%)
CMYKcmyk(45%, 65.6%, 0%, 25.9%)
CIE-LABlab(38.55, 45.39, -59.49)
CIE-LCHlch(38.55, 74.83, 307.34°)
OKLaboklab(48.99% 0.0714 -0.1701)
OKLCHoklch(48.99% 0.184 292.8)
XYZxyz(16.7820, 10.3973, 49.2569)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841BD #96BD41
analogous
#4158BD #6841BD #A641BD
triadic
#6841BD #BD6841 #41BD68
tetradic
#6841BD #BD4158 #96BD41 #41BDA6
square
#6841BD #BD4158 #96BD41 #41BDA6
split-complementary
#6841BD #BDA641 #58BD41
monochromatic
#362262 #4F318F #6841BD #8C6ECD #B09CDD

Accessibility & contrast

On white

6.82
#6841BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6841BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841BD
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841BD#FFFFFF#000000##FFFFFF
##6841BD1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#4F5F79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6841bd;
/* rgb */ color: rgb(104, 65, 189);
/* oklch */ color: oklch(49.0% 0.184 292.8);
Tailwind
colors: {
  custom: {
    50: '#9a78d2',
    500: '#6841bd',
    950: '#000000',
  },
}
SCSS
$custom: #6841bd;
$custom-light: #9a78d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6841bd",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 189
  },
  "hsl": {
    "h": 258.871,
    "s": 48.819,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48987,
    "c": 0.18448,
    "h": 292.8
  },
  "luminance": 0.10398
}

Semantic roles & 50–950 ramp

primary
#6841BD
secondary
#B7C991
accent
#D84FAD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6841BD

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

Preview Lab → · Contrast checker → · Palette generator →

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