#6841E7#6841E7

#6841E7 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.5% C 0.234 H 285.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#6841E7
RGBrgb(104, 65, 231)
HSLhsl(254, 78%, 58%)
HSVhsv(254, 72%, 91%)
CMYKcmyk(55%, 71.9%, 0%, 9.4%)
CIE-LABlab(41.99, 57.14, -78.08)
CIE-LCHlch(41.99, 96.75, 306.19°)
OKLaboklab(52.51% 0.0641 -0.2247)
OKLCHoklch(52.51% 0.234 285.9)
XYZxyz(22.0187, 12.4919, 76.8368)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841E7 #C0E741
analogous
#416DE7 #6841E7 #BB41E7
triadic
#6841E7 #E76841 #41E768
tetradic
#6841E7 #E7416D #C0E741 #41E7BB
square
#6841E7 #E7416D #C0E741 #41E7BB
split-complementary
#6841E7 #E7BB41 #6DE741
monochromatic
#33139A #451AD0 #6841E7 #9377EE #BEAEF5

Accessibility & contrast

On white

6.00
#6841E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#6841E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841E7
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841E7#FFFFFF#000000##FFFFFF
##6841E71.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005EE4
Tritanopia (blue-blind)
#2E6E90
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6841e7;
/* rgb */ color: rgb(104, 65, 231);
/* oklch */ color: oklch(52.5% 0.234 285.9);
Tailwind
colors: {
  custom: {
    50: '#9f79f0',
    500: '#6841e7',
    950: '#000000',
  },
}
SCSS
$custom: #6841e7;
$custom-light: #9f79f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6841e7",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 231
  },
  "hsl": {
    "h": 254.096,
    "s": 77.57,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52509,
    "c": 0.23367,
    "h": 285.9
  },
  "luminance": 0.12493
}

Semantic roles & 50–950 ramp

primary
#6841E7
secondary
#D3E3A1
accent
#F434C7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6841E7

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

Preview Lab → · Contrast checker → · Palette generator →

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