#6841E1#6841E1

#6841E1 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.227 H 286.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#6841E1
RGBrgb(104, 65, 225)
HSLhsl(255, 73%, 57%)
HSVhsv(255, 71%, 88%)
CMYKcmyk(53.8%, 71.1%, 0%, 11.8%)
CIE-LABlab(41.47, 55.46, -75.52)
CIE-LCHlch(41.47, 93.70, 306.29°)
OKLaboklab(51.98% 0.0654 -0.2172)
OKLCHoklch(51.98% 0.227 286.8)
XYZxyz(21.1858, 12.1588, 72.4501)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841E1 #BAE141
analogous
#416AE1 #6841E1 #B841E1
triadic
#6841E1 #E16841 #41E168
tetradic
#6841E1 #E1416A #BAE141 #41E1B8
square
#6841E1 #E1416A #BAE141 #41E1B8
split-complementary
#6841E1 #E1B841 #6AE141
monochromatic
#351791 #481FC6 #6841E1 #9276E9 #BCABF2

Accessibility & contrast

On white

6.12
#6841E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6841E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841E1
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841E1#FFFFFF#000000##FFFFFF
##6841E11.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#005DDE
Tritanopia (blue-blind)
#356C8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6841e1;
/* rgb */ color: rgb(104, 65, 225);
/* oklch */ color: oklch(52.0% 0.227 286.8);
Tailwind
colors: {
  custom: {
    50: '#9f79ec',
    500: '#6841e1',
    950: '#000000',
  },
}
SCSS
$custom: #6841e1;
$custom-light: #9f79ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6841e1",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 225
  },
  "hsl": {
    "h": 254.625,
    "s": 72.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51982,
    "c": 0.22683,
    "h": 286.8
  },
  "luminance": 0.1216
}

Semantic roles & 50–950 ramp

primary
#6841E1
secondary
#D0E09E
accent
#EF38C3
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6841E1

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

Preview Lab → · Contrast checker → · Palette generator →

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