#6841D8#6841D8

#6841D8 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.216 H 288.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6841D8
RGBrgb(104, 65, 216)
HSLhsl(255, 66%, 55%)
HSVhsv(255, 70%, 85%)
CMYKcmyk(51.9%, 69.9%, 0%, 15.3%)
CIE-LABlab(40.70, 52.93, -71.63)
CIE-LCHlch(40.70, 89.06, 306.46°)
OKLaboklab(51.2% 0.0672 -0.2058)
OKLCHoklch(51.2% 0.216 288.1)
XYZxyz(19.9902, 11.6806, 66.1537)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841D8 #B1D841
analogous
#4165D8 #6841D8 #B441D8
triadic
#6841D8 #D86841 #41D868
tetradic
#6841D8 #D84165 #B1D841 #41D8B4
square
#6841D8 #D84165 #B1D841 #41D8B4
split-complementary
#6841D8 #D8B441 #65D841
monochromatic
#361B84 #4B25B6 #6841D8 #9074E2 #B9A7ED

Accessibility & contrast

On white

6.29
#6841D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6841D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841D8
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841D8#FFFFFF#000000##FFFFFF
##6841D81.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#005CD5
Tritanopia (blue-blind)
#3D6888
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6841d8;
/* rgb */ color: rgb(104, 65, 216);
/* oklch */ color: oklch(51.2% 0.216 288.1);
Tailwind
colors: {
  custom: {
    50: '#9d79e5',
    500: '#6841d8',
    950: '#000000',
  },
}
SCSS
$custom: #6841d8;
$custom-light: #9d79e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6841d8",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 255.497,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51204,
    "c": 0.21646,
    "h": 288.1
  },
  "luminance": 0.11682
}

Semantic roles & 50–950 ramp

primary
#6841D8
secondary
#CADA9B
accent
#E93FBD
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6841D8

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

Preview Lab → · Contrast checker → · Palette generator →

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