#6841BE#6841BE

#6841BE is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.1% C 0.186 H 292.6°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#6841BE
RGBrgb(104, 65, 190)
HSLhsl(259, 49%, 50%)
HSVhsv(259, 66%, 75%)
CMYKcmyk(45.3%, 65.8%, 0%, 25.5%)
CIE-LABlab(38.62, 45.67, -59.95)
CIE-LCHlch(38.62, 75.36, 307.30°)
OKLaboklab(49.07% 0.0712 -0.1715)
OKLCHoklch(49.07% 0.186 292.6)
XYZxyz(16.8909, 10.4408, 49.8305)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841BE #97BE41
analogous
#4158BE #6841BE #A741BE
triadic
#6841BE #BE6841 #41BE68
tetradic
#6841BE #BE4158 #97BE41 #41BEA7
square
#6841BE #BE4158 #97BE41 #41BEA7
split-complementary
#6841BE #BEA741 #58BE41
monochromatic
#362263 #4F3190 #6841BE #8C6FCE #B09CDD

Accessibility & contrast

On white

6.80
#6841BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6841BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841BE
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841BE#FFFFFF#000000##FFFFFF
##6841BE1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#4F5F7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6841be;
/* rgb */ color: rgb(104, 65, 190);
/* oklch */ color: oklch(49.1% 0.186 292.6);
Tailwind
colors: {
  custom: {
    50: '#9a78d2',
    500: '#6841be',
    950: '#000000',
  },
}
SCSS
$custom: #6841be;
$custom-light: #9a78d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6841be",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 258.72,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.49066,
    "c": 0.18568,
    "h": 292.6
  },
  "luminance": 0.10441
}

Semantic roles & 50–950 ramp

primary
#6841BE
secondary
#B8C991
accent
#D94FAE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6841BE

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

Preview Lab → · Contrast checker → · Palette generator →

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