#6841CD#6841CD

#6841CD is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.204 H 289.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#6841CD
RGBrgb(104, 65, 205)
HSLhsl(257, 58%, 53%)
HSVhsv(257, 68%, 80%)
CMYKcmyk(49.3%, 68.3%, 0%, 19.6%)
CIE-LABlab(39.80, 49.85, -66.77)
CIE-LCHlch(39.80, 83.32, 306.75°)
OKLaboklab(50.28% 0.0691 -0.1915)
OKLCHoklch(50.28% 0.204 289.8)
XYZxyz(18.6155, 11.1307, 58.9133)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841CD #A6CD41
analogous
#4160CD #6841CD #AE41CD
triadic
#6841CD #CD6841 #41CD68
tetradic
#6841CD #CD4160 #A6CD41 #41CDAE
square
#6841CD #CD4160 #A6CD41 #41CDAE
split-complementary
#6841CD #CDAE41 #60CD41
monochromatic
#371F75 #4D2CA5 #6841CD #8F71DA #B5A2E6

Accessibility & contrast

On white

6.51
#6841CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6841CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6841CD
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841CD#FFFFFF#000000##FFFFFF
##6841CD1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#466482
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6841cd;
/* rgb */ color: rgb(104, 65, 205);
/* oklch */ color: oklch(50.3% 0.204 289.8);
Tailwind
colors: {
  custom: {
    50: '#9c78dd',
    500: '#6841cd',
    950: '#000000',
  },
}
SCSS
$custom: #6841cd;
$custom-light: #9c78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6841cd",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 205
  },
  "hsl": {
    "h": 256.714,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50279,
    "c": 0.20359,
    "h": 289.8
  },
  "luminance": 0.11131
}

Semantic roles & 50–950 ramp

primary
#6841CD
secondary
#C2D397
accent
#E246B6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6841CD

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

Preview Lab → · Contrast checker → · Palette generator →

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