#6841B0#6841B0

#6841B0 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.0% C 0.169 H 295.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#6841B0
RGBrgb(104, 65, 176)
HSLhsl(261, 46%, 47%)
HSVhsv(261, 63%, 69%)
CMYKcmyk(40.9%, 63.1%, 0%, 31%)
CIE-LABlab(37.59, 41.81, -53.38)
CIE-LCHlch(37.59, 67.80, 308.07°)
OKLaboklab(47.99% 0.0726 -0.1521)
OKLCHoklch(47.99% 0.169 295.5)
XYZxyz(15.4336, 9.8579, 42.1555)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841B0 #89B041
analogous
#4152B0 #6841B0 #A041B0
triadic
#6841B0 #B06841 #41B068
tetradic
#6841B0 #B04152 #89B041 #41B0A0
square
#6841B0 #B04152 #89B041 #41B0A0
split-complementary
#6841B0 #B0A041 #52B041
monochromatic
#332057 #4E3083 #6841B0 #8967C7 #AC94D7

Accessibility & contrast

On white

7.07
#6841B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#6841B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6841B0
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841B0#FFFFFF#000000##FFFFFF
##6841B01.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#565A72
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6841b0;
/* rgb */ color: rgb(104, 65, 176);
/* oklch */ color: oklch(48.0% 0.169 295.5);
Tailwind
colors: {
  custom: {
    50: '#9878c8',
    500: '#6841b0',
    950: '#000000',
  },
}
SCSS
$custom: #6841b0;
$custom-light: #9878c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6841b0",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 176
  },
  "hsl": {
    "h": 261.081,
    "s": 46.058,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4799,
    "c": 0.1686,
    "h": 295.5
  },
  "luminance": 0.09858
}

Semantic roles & 50–950 ramp

primary
#6841B0
secondary
#AFC38A
accent
#D652A7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6841B0

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

Preview Lab → · Contrast checker → · Palette generator →

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