#6841C8#6841C8

#6841C8 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.9% C 0.198 H 290.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#6841C8
RGBrgb(104, 65, 200)
HSLhsl(257, 55%, 52%)
HSVhsv(257, 68%, 78%)
CMYKcmyk(48%, 67.5%, 0%, 21.6%)
CIE-LABlab(39.40, 48.45, -64.52)
CIE-LCHlch(39.40, 80.69, 306.91°)
OKLaboklab(49.87% 0.0699 -0.1849)
OKLCHoklch(49.87% 0.198 290.7)
XYZxyz(18.0216, 10.8931, 55.7854)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841C8 #A1C841
analogous
#415EC8 #6841C8 #AB41C8
triadic
#6841C8 #C86841 #41C868
tetradic
#6841C8 #C8415E #A1C841 #41C8AB
square
#6841C8 #C8415E #A1C841 #41C8AB
split-complementary
#6841C8 #C8AB41 #5EC841
monochromatic
#37206F #4E2E9E #6841C8 #8E70D6 #B3A0E3

Accessibility & contrast

On white

6.61
#6841C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6841C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841C8
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841C8#FFFFFF#000000##FFFFFF
##6841C81.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#49637F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6841c8;
/* rgb */ color: rgb(104, 65, 200);
/* oklch */ color: oklch(49.9% 0.198 290.7);
Tailwind
colors: {
  custom: {
    50: '#9b78da',
    500: '#6841c8',
    950: '#000000',
  },
}
SCSS
$custom: #6841c8;
$custom-light: #9b78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6841c8",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 257.333,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49868,
    "c": 0.19767,
    "h": 290.7
  },
  "luminance": 0.10894
}

Semantic roles & 50–950 ramp

primary
#6841C8
secondary
#BFD095
accent
#DE49B3
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6841C8

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

Preview Lab → · Contrast checker → · Palette generator →

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