#6841A2#6841A2

#6841A2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.0% C 0.151 H 299.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#6841A2
RGBrgb(104, 65, 162)
HSLhsl(264, 43%, 45%)
HSVhsv(264, 60%, 64%)
CMYKcmyk(35.8%, 59.9%, 0%, 36.5%)
CIE-LABlab(36.62, 38.01, -46.59)
CIE-LCHlch(36.62, 60.13, 309.21°)
OKLaboklab(46.97% 0.0733 -0.1322)
OKLCHoklch(46.97% 0.151 299)
XYZxyz(14.1192, 9.3321, 35.2328)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841A2 #7BA241
analogous
#414BA2 #6841A2 #9941A2
triadic
#6841A2 #A26841 #41A268
tetradic
#6841A2 #A2414B #7BA241 #41A299
square
#6841A2 #A2414B #7BA241 #41A299
split-complementary
#6841A2 #A29941 #4BA241
monochromatic
#301E4B #4C2F76 #6841A2 #8761BF #A88CD1

Accessibility & contrast

On white

7.33
#6841A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6841A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6841A2
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841A2#FFFFFF#000000##FFFFFF
##6841A21.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0956A5
Deuteranopia (green-blind)
#1F55A0
Tritanopia (blue-blind)
#5B556B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6841a2;
/* rgb */ color: rgb(104, 65, 162);
/* oklch */ color: oklch(47.0% 0.151 299.0);
Tailwind
colors: {
  custom: {
    50: '#9777be',
    500: '#6841a2',
    950: '#000000',
  },
}
SCSS
$custom: #6841a2;
$custom-light: #9777be;
$custom-dark: #000000;
JSON
{
  "hex": "#6841a2",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 264.124,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46974,
    "c": 0.15116,
    "h": 299
  },
  "luminance": 0.09332
}

Semantic roles & 50–950 ramp

primary
#6841A2
secondary
#A5BC83
accent
#D355A0
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6841A2

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

Preview Lab → · Contrast checker → · Palette generator →

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