#6841B8#6841B8

#6841B8 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.178 H 293.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6841B8
RGBrgb(104, 65, 184)
HSLhsl(260, 48%, 49%)
HSVhsv(260, 65%, 72%)
CMYKcmyk(43.5%, 64.7%, 0%, 27.8%)
CIE-LABlab(38.17, 44.01, -57.16)
CIE-LCHlch(38.17, 72.14, 307.59°)
OKLaboklab(48.6% 0.0719 -0.1633)
OKLCHoklch(48.6% 0.178 293.8)
XYZxyz(16.2486, 10.1839, 46.4477)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841B8 #91B841
analogous
#4156B8 #6841B8 #A441B8
triadic
#6841B8 #B86841 #41B868
tetradic
#6841B8 #B84156 #91B841 #41B8A4
square
#6841B8 #B84156 #91B841 #41B8A4
split-complementary
#6841B8 #B8A441 #56B841
monochromatic
#35215E #4E318B #6841B8 #8B6BCB #AE99DB

Accessibility & contrast

On white

6.92
#6841B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6841B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841B8
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841B8#FFFFFF#000000##FFFFFF
##6841B81.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#525D77
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6841b8;
/* rgb */ color: rgb(104, 65, 184);
/* oklch */ color: oklch(48.6% 0.178 293.8);
Tailwind
colors: {
  custom: {
    50: '#9978ce',
    500: '#6841b8',
    950: '#000000',
  },
}
SCSS
$custom: #6841b8;
$custom-light: #9978ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6841b8",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 259.664,
    "s": 47.791,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48598,
    "c": 0.17841,
    "h": 293.8
  },
  "luminance": 0.10184
}

Semantic roles & 50–950 ramp

primary
#6841B8
secondary
#B4C78E
accent
#D750AB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6841B8

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

Preview Lab → · Contrast checker → · Palette generator →

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