#6841BF#6841BF

#6841BF is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.187 H 292.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#6841BF
RGBrgb(104, 65, 191)
HSLhsl(259, 50%, 50%)
HSVhsv(259, 66%, 75%)
CMYKcmyk(45.5%, 66%, 0%, 25.1%)
CIE-LABlab(38.70, 45.95, -60.41)
CIE-LCHlch(38.70, 75.90, 307.26°)
OKLaboklab(49.15% 0.0711 -0.1728)
OKLCHoklch(49.15% 0.187 292.4)
XYZxyz(17.0006, 10.4847, 50.4081)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841BF #98BF41
analogous
#4159BF #6841BF #A741BF
triadic
#6841BF #BF6841 #41BF68
tetradic
#6841BF #BF4159 #98BF41 #41BFA7
square
#6841BF #BF4159 #98BF41 #41BFA7
split-complementary
#6841BF #BFA741 #59BF41
monochromatic
#362264 #4F3192 #6841BF #8C6FCE #B19DDE

Accessibility & contrast

On white

6.78
#6841BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6841BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841BF
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841BF#FFFFFF#000000##FFFFFF
##6841BF1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#4E5F7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6841bf;
/* rgb */ color: rgb(104, 65, 191);
/* oklch */ color: oklch(49.1% 0.187 292.4);
Tailwind
colors: {
  custom: {
    50: '#9a78d3',
    500: '#6841bf',
    950: '#000000',
  },
}
SCSS
$custom: #6841bf;
$custom-light: #9a78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6841bf",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 258.571,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49145,
    "c": 0.18689,
    "h": 292.4
  },
  "luminance": 0.10485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6841BF

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

Preview Lab → · Contrast checker → · Palette generator →

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