#6841B3#6841B3

#6841B3 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.2% C 0.172 H 294.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#6841B3
RGBrgb(104, 65, 179)
HSLhsl(261, 47%, 48%)
HSVhsv(261, 64%, 70%)
CMYKcmyk(41.9%, 63.7%, 0%, 29.8%)
CIE-LABlab(37.80, 42.63, -54.80)
CIE-LCHlch(37.80, 69.43, 307.88°)
OKLaboklab(48.22% 0.0724 -0.1563)
OKLCHoklch(48.22% 0.172 294.8)
XYZxyz(15.7337, 9.9780, 43.7361)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841B3 #8CB341
analogous
#4153B3 #6841B3 #A141B3
triadic
#6841B3 #B36841 #41B368
tetradic
#6841B3 #B34153 #8CB341 #41B3A1
square
#6841B3 #B34153 #8CB341 #41B3A1
split-complementary
#6841B3 #B3A141 #53B341
monochromatic
#342059 #4E3186 #6841B3 #8969C8 #AD96D9

Accessibility & contrast

On white

7.01
#6841B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#6841B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841B3
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841B3#FFFFFF#000000##FFFFFF
##6841B31.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#545B74
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6841b3;
/* rgb */ color: rgb(104, 65, 179);
/* oklch */ color: oklch(48.2% 0.172 294.8);
Tailwind
colors: {
  custom: {
    50: '#9978ca',
    500: '#6841b3',
    950: '#000000',
  },
}
SCSS
$custom: #6841b3;
$custom-light: #9978ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6841b3",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 179
  },
  "hsl": {
    "h": 260.526,
    "s": 46.721,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48216,
    "c": 0.17229,
    "h": 294.8
  },
  "luminance": 0.09978
}

Semantic roles & 50–950 ramp

primary
#6841B3
secondary
#B1C48B
accent
#D651A9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6841B3

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

Preview Lab → · Contrast checker → · Palette generator →

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