#6846C2#6846C2

#6846C2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.184 H 290.9°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#6846C2
RGBrgb(104, 70, 194)
HSLhsl(256, 50%, 52%)
HSVhsv(256, 64%, 76%)
CMYKcmyk(46.4%, 63.9%, 0%, 23.9%)
CIE-LABlab(39.94, 44.03, -60.14)
CIE-LCHlch(39.94, 74.53, 306.21°)
OKLaboklab(50.12% 0.0656 -0.172)
OKLCHoklch(50.12% 0.184 290.9)
XYZxyz(17.6339, 11.2178, 52.2646)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6846C2 #A0C246
analogous
#4662C2 #6846C2 #A646C2
triadic
#6846C2 #C26846 #46C268
tetradic
#6846C2 #C24662 #A0C246 #46C2A6
square
#6846C2 #C24662 #A0C246 #46C2A6
split-complementary
#6846C2 #C2A646 #62C246
monochromatic
#37236A #4E3299 #6846C2 #8E74D1 #B3A2E0

Accessibility & contrast

On white

6.47
#6846C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6846C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6846C2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6846C2#FFFFFF#000000##FFFFFF
##6846C21.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#4C637E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6846c2;
/* rgb */ color: rgb(104, 70, 194);
/* oklch */ color: oklch(50.1% 0.184 290.9);
Tailwind
colors: {
  custom: {
    50: '#9a7bd5',
    500: '#6846c2',
    950: '#000000',
  },
}
SCSS
$custom: #6846c2;
$custom-light: #9a7bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#6846c2",
  "rgb": {
    "r": 104,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 256.452,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50116,
    "c": 0.1841,
    "h": 290.9
  },
  "luminance": 0.11218
}

Semantic roles & 50–950 ramp

primary
#6846C2
secondary
#BECD97
accent
#DA4EB4
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6846C2

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

Preview Lab → · Contrast checker → · Palette generator →

#6846C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva