#6841DB#6841DB

#6841DB is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.220 H 287.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6841DB
RGBrgb(104, 65, 219)
HSLhsl(255, 68%, 56%)
HSVhsv(255, 70%, 86%)
CMYKcmyk(52.5%, 70.3%, 0%, 14.1%)
CIE-LABlab(40.96, 53.77, -72.93)
CIE-LCHlch(40.96, 90.61, 306.40°)
OKLaboklab(51.46% 0.0666 -0.2096)
OKLCHoklch(51.46% 0.22 287.6)
XYZxyz(20.3816, 11.8371, 68.2149)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841DB #B4DB41
analogous
#4167DB #6841DB #B541DB
triadic
#6841DB #DB6841 #41DB68
tetradic
#6841DB #DB4167 #B4DB41 #41DBB5
square
#6841DB #DB4167 #B4DB41 #41DBB5
split-complementary
#6841DB #DBB541 #67DB41
monochromatic
#361A88 #4A23BB #6841DB #9174E5 #BAA8EE

Accessibility & contrast

On white

6.24
#6841DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6841DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841DB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841DB#FFFFFF#000000##FFFFFF
##6841DB1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#005CD8
Tritanopia (blue-blind)
#3B6A8A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6841db;
/* rgb */ color: rgb(104, 65, 219);
/* oklch */ color: oklch(51.5% 0.220 287.6);
Tailwind
colors: {
  custom: {
    50: '#9e79e7',
    500: '#6841db',
    950: '#000000',
  },
}
SCSS
$custom: #6841db;
$custom-light: #9e79e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6841db",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 219
  },
  "hsl": {
    "h": 255.195,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51461,
    "c": 0.21994,
    "h": 287.6
  },
  "luminance": 0.11838
}

Semantic roles & 50–950 ramp

primary
#6841DB
secondary
#CCDC9C
accent
#EB3DBF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6841DB

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

Preview Lab → · Contrast checker → · Palette generator →

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