#6841DF#6841DF

#6841DF is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.225 H 287.0°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#6841DF
RGBrgb(104, 65, 223)
HSLhsl(255, 71%, 56%)
HSVhsv(255, 71%, 87%)
CMYKcmyk(53.4%, 70.9%, 0%, 12.5%)
CIE-LABlab(41.30, 54.90, -74.66)
CIE-LCHlch(41.30, 92.67, 306.32°)
OKLaboklab(51.81% 0.0658 -0.2147)
OKLCHoklch(51.81% 0.225 287)
XYZxyz(20.9145, 12.0503, 71.0216)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841DF #B8DF41
analogous
#4169DF #6841DF #B741DF
triadic
#6841DF #DF6841 #41DF68
tetradic
#6841DF #DF4169 #B8DF41 #41DFB7
square
#6841DF #DF4169 #B8DF41 #41DFB7
split-complementary
#6841DF #DFB741 #69DF41
monochromatic
#35188E #4921C2 #6841DF #9275E8 #BBAAF1

Accessibility & contrast

On white

6.16
#6841DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#6841DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841DF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841DF#FFFFFF#000000##FFFFFF
##6841DF1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#376B8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6841df;
/* rgb */ color: rgb(104, 65, 223);
/* oklch */ color: oklch(51.8% 0.225 287.0);
Tailwind
colors: {
  custom: {
    50: '#9e79ea',
    500: '#6841df',
    950: '#000000',
  },
}
SCSS
$custom: #6841df;
$custom-light: #9e79ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6841df",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 223
  },
  "hsl": {
    "h": 254.81,
    "s": 71.171,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51807,
    "c": 0.22454,
    "h": 287
  },
  "luminance": 0.12051
}

Semantic roles & 50–950 ramp

primary
#6841DF
secondary
#CEDE9D
accent
#EE3AC1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6841DF

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

Preview Lab → · Contrast checker → · Palette generator →

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