#6841B7#6841B7

#6841B7 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.177 H 294.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#6841B7
RGBrgb(104, 65, 183)
HSLhsl(260, 48%, 49%)
HSVhsv(260, 64%, 72%)
CMYKcmyk(43.2%, 64.5%, 0%, 28.2%)
CIE-LABlab(38.10, 43.73, -56.69)
CIE-LCHlch(38.10, 71.60, 307.65°)
OKLaboklab(48.52% 0.072 -0.1619)
OKLCHoklch(48.52% 0.177 294)
XYZxyz(16.1442, 10.1421, 45.8976)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841B7 #90B741
analogous
#4155B7 #6841B7 #A341B7
triadic
#6841B7 #B76841 #41B768
tetradic
#6841B7 #B74155 #90B741 #41B7A3
square
#6841B7 #B74155 #90B741 #41B7A3
split-complementary
#6841B7 #B7A341 #55B741
monochromatic
#35215D #4E318A #6841B7 #8A6BCA #AE98DA

Accessibility & contrast

On white

6.93
#6841B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6841B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841B7
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841B7#FFFFFF#000000##FFFFFF
##6841B71.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#525D76
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6841b7;
/* rgb */ color: rgb(104, 65, 183);
/* oklch */ color: oklch(48.5% 0.177 294.0);
Tailwind
colors: {
  custom: {
    50: '#9978cd',
    500: '#6841b7',
    950: '#000000',
  },
}
SCSS
$custom: #6841b7;
$custom-light: #9978cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6841b7",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 259.831,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48521,
    "c": 0.17719,
    "h": 294
  },
  "luminance": 0.10143
}

Semantic roles & 50–950 ramp

primary
#6841B7
secondary
#B4C68E
accent
#D751AB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6841B7

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

Preview Lab → · Contrast checker → · Palette generator →

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