#6841D9#6841D9

#6841D9 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.218 H 287.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#6841D9
RGBrgb(104, 65, 217)
HSLhsl(255, 67%, 55%)
HSVhsv(255, 70%, 85%)
CMYKcmyk(52.1%, 70%, 0%, 14.9%)
CIE-LABlab(40.79, 53.21, -72.06)
CIE-LCHlch(40.79, 89.58, 306.44°)
OKLaboklab(51.29% 0.067 -0.207)
OKLCHoklch(51.29% 0.218 287.9)
XYZxyz(20.1199, 11.7324, 66.8366)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841D9 #B2D941
analogous
#4166D9 #6841D9 #B441D9
triadic
#6841D9 #D96841 #41D968
tetradic
#6841D9 #D94166 #B2D941 #41D9B4
square
#6841D9 #D94166 #B2D941 #41D9B4
split-complementary
#6841D9 #D9B441 #66D941
monochromatic
#361B85 #4B25B8 #6841D9 #9174E3 #B9A7ED

Accessibility & contrast

On white

6.28
#6841D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6841D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841D9
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841D9#FFFFFF#000000##FFFFFF
##6841D91.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#005CD6
Tritanopia (blue-blind)
#3C6988
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6841d9;
/* rgb */ color: rgb(104, 65, 217);
/* oklch */ color: oklch(51.3% 0.218 287.9);
Tailwind
colors: {
  custom: {
    50: '#9d79e6',
    500: '#6841d9',
    950: '#000000',
  },
}
SCSS
$custom: #6841d9;
$custom-light: #9d79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6841d9",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 217
  },
  "hsl": {
    "h": 255.395,
    "s": 66.667,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5129,
    "c": 0.21761,
    "h": 287.9
  },
  "luminance": 0.11733
}

Semantic roles & 50–950 ramp

primary
#6841D9
secondary
#CADB9B
accent
#EA3EBE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6841D9

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

Preview Lab → · Contrast checker → · Palette generator →

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