#6841C7#6841C7

#6841C7 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.8% C 0.196 H 290.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#6841C7
RGBrgb(104, 65, 199)
HSLhsl(257, 54%, 52%)
HSVhsv(257, 67%, 78%)
CMYKcmyk(47.7%, 67.3%, 0%, 22%)
CIE-LABlab(39.32, 48.17, -64.07)
CIE-LCHlch(39.32, 80.16, 306.94°)
OKLaboklab(49.79% 0.07 -0.1836)
OKLCHoklch(49.79% 0.196 290.9)
XYZxyz(17.9051, 10.8465, 55.1719)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841C7 #A0C741
analogous
#415DC7 #6841C7 #AB41C7
triadic
#6841C7 #C76841 #41C768
tetradic
#6841C7 #C7415D #A0C741 #41C7AB
square
#6841C7 #C7415D #A0C741 #41C7AB
split-complementary
#6841C7 #C7AB41 #5DC741
monochromatic
#37206D #4E2E9D #6841C7 #8E70D5 #B3A0E3

Accessibility & contrast

On white

6.63
#6841C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6841C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841C7
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841C7#FFFFFF#000000##FFFFFF
##6841C71.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#4A627F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6841c7;
/* rgb */ color: rgb(104, 65, 199);
/* oklch */ color: oklch(49.8% 0.196 290.9);
Tailwind
colors: {
  custom: {
    50: '#9b78d9',
    500: '#6841c7',
    950: '#000000',
  },
}
SCSS
$custom: #6841c7;
$custom-light: #9b78d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6841c7",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 199
  },
  "hsl": {
    "h": 257.463,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49787,
    "c": 0.19648,
    "h": 290.9
  },
  "luminance": 0.10847
}

Semantic roles & 50–950 ramp

primary
#6841C7
secondary
#BECF95
accent
#DE4AB3
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6841C7

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

Preview Lab → · Contrast checker → · Palette generator →

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