#6842AD#6842AD

#6842AD is a mid, vivid violet. Relative luminance 0.099; OKLCH L 47.9% C 0.163 H 296.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#6842AD
RGBrgb(104, 66, 173)
HSLhsl(261, 45%, 47%)
HSVhsv(261, 62%, 68%)
CMYKcmyk(39.9%, 61.8%, 0%, 32.2%)
CIE-LABlab(37.58, 40.42, -51.60)
CIE-LCHlch(37.58, 65.55, 308.07°)
OKLaboklab(47.92% 0.0717 -0.1469)
OKLCHoklch(47.92% 0.163 296)
XYZxyz(15.1980, 9.8563, 40.6288)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842AD #87AD42
analogous
#4252AD #6842AD #9E42AD
triadic
#6842AD #AD6842 #42AD68
tetradic
#6842AD #AD4252 #87AD42 #42AD9E
square
#6842AD #AD4252 #87AD42 #42AD9E
split-complementary
#6842AD #AD9E42 #52AD42
monochromatic
#332054 #4D3181 #6842AD #8867C5 #AB93D6

Accessibility & contrast

On white

7.07
#6842AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#6842AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6842AD
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842AD#FFFFFF#000000##FFFFFF
##6842AD1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B0
Deuteranopia (green-blind)
#0857AB
Tritanopia (blue-blind)
#575A71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6842ad;
/* rgb */ color: rgb(104, 66, 173);
/* oklch */ color: oklch(47.9% 0.163 296.0);
Tailwind
colors: {
  custom: {
    50: '#9878c6',
    500: '#6842ad',
    950: '#000000',
  },
}
SCSS
$custom: #6842ad;
$custom-light: #9878c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6842ad",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 261.308,
    "s": 44.77,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4792,
    "c": 0.16348,
    "h": 296
  },
  "luminance": 0.09857
}

Semantic roles & 50–950 ramp

primary
#6842AD
secondary
#AEC189
accent
#D453A7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6842AD

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

Preview Lab → · Contrast checker → · Palette generator →

#6842AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva