#6841CC#6841CC

#6841CC is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.2% C 0.202 H 290.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#6841CC
RGBrgb(104, 65, 204)
HSLhsl(257, 58%, 53%)
HSVhsv(257, 68%, 80%)
CMYKcmyk(49%, 68.1%, 0%, 20%)
CIE-LABlab(39.72, 49.57, -66.32)
CIE-LCHlch(39.72, 82.80, 306.78°)
OKLaboklab(50.2% 0.0693 -0.1902)
OKLCHoklch(50.2% 0.202 290)
XYZxyz(18.4952, 11.0825, 58.2797)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841CC #A5CC41
analogous
#415FCC #6841CC #AE41CC
triadic
#6841CC #CC6841 #41CC68
tetradic
#6841CC #CC415F #A5CC41 #41CCAE
square
#6841CC #CC415F #A5CC41 #41CCAE
split-complementary
#6841CC #CCAE41 #5FCC41
monochromatic
#371F74 #4E2CA4 #6841CC #8E71D9 #B5A1E6

Accessibility & contrast

On white

6.53
#6841CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6841CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841CC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841CC#FFFFFF#000000##FFFFFF
##6841CC1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#466481
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6841cc;
/* rgb */ color: rgb(104, 65, 204);
/* oklch */ color: oklch(50.2% 0.202 290.0);
Tailwind
colors: {
  custom: {
    50: '#9c78dd',
    500: '#6841cc',
    950: '#000000',
  },
}
SCSS
$custom: #6841cc;
$custom-light: #9c78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6841cc",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 204
  },
  "hsl": {
    "h": 256.835,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50196,
    "c": 0.20241,
    "h": 290
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#6841CC
secondary
#C2D396
accent
#E147B6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6841CC

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

Preview Lab → · Contrast checker → · Palette generator →

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