#6841D1#6841D1

#6841D1 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.208 H 289.2°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#6841D1
RGBrgb(104, 65, 209)
HSLhsl(256, 61%, 54%)
HSVhsv(256, 69%, 82%)
CMYKcmyk(50.2%, 68.9%, 0%, 18%)
CIE-LABlab(40.12, 50.97, -68.55)
CIE-LCHlch(40.12, 85.42, 306.63°)
OKLaboklab(50.61% 0.0684 -0.1967)
OKLCHoklch(50.61% 0.208 289.2)
XYZxyz(19.1045, 11.3263, 61.4888)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841D1 #AAD141
analogous
#4162D1 #6841D1 #B041D1
triadic
#6841D1 #D16841 #41D168
tetradic
#6841D1 #D14162 #AAD141 #41D1B0
square
#6841D1 #D14162 #AAD141 #41D1B0
split-complementary
#6841D1 #D1B041 #62D141
monochromatic
#371E7A #4D29AB #6841D1 #8F72DD #B6A4E9

Accessibility & contrast

On white

6.43
#6841D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6841D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841D1
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841D1#FFFFFF#000000##FFFFFF
##6841D11.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#005BCE
Tritanopia (blue-blind)
#436684
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6841d1;
/* rgb */ color: rgb(104, 65, 209);
/* oklch */ color: oklch(50.6% 0.208 289.2);
Tailwind
colors: {
  custom: {
    50: '#9c79e0',
    500: '#6841d1',
    950: '#000000',
  },
}
SCSS
$custom: #6841d1;
$custom-light: #9c79e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6841d1",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 209
  },
  "hsl": {
    "h": 256.25,
    "s": 61.017,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50612,
    "c": 0.20829,
    "h": 289.2
  },
  "luminance": 0.11327
}

Semantic roles & 50–950 ramp

primary
#6841D1
secondary
#C5D698
accent
#E444B9
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6841D1

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

Preview Lab → · Contrast checker → · Palette generator →

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