#6842AE#6842AE

#6842AE is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.0% C 0.165 H 295.8°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#6842AE
RGBrgb(104, 66, 174)
HSLhsl(261, 45%, 47%)
HSVhsv(261, 62%, 68%)
CMYKcmyk(40.2%, 62.1%, 0%, 31.8%)
CIE-LABlab(37.65, 40.70, -52.08)
CIE-LCHlch(37.65, 66.10, 308.00°)
OKLaboklab(47.99% 0.0716 -0.1483)
OKLCHoklch(47.99% 0.165 295.8)
XYZxyz(15.2951, 9.8952, 41.1403)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842AE #88AE42
analogous
#4252AE #6842AE #9E42AE
triadic
#6842AE #AE6842 #42AE68
tetradic
#6842AE #AE4252 #88AE42 #42AE9E
square
#6842AE #AE4252 #88AE42 #42AE9E
split-complementary
#6842AE #AE9E42 #52AE42
monochromatic
#332055 #4D3182 #6842AE #8968C6 #AB94D6

Accessibility & contrast

On white

7.05
#6842AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6842AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6842AE
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842AE#FFFFFF#000000##FFFFFF
##6842AE1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0457AC
Tritanopia (blue-blind)
#565A72
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6842ae;
/* rgb */ color: rgb(104, 66, 174);
/* oklch */ color: oklch(48.0% 0.165 295.8);
Tailwind
colors: {
  custom: {
    50: '#9878c7',
    500: '#6842ae',
    950: '#000000',
  },
}
SCSS
$custom: #6842ae;
$custom-light: #9878c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6842ae",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 261.111,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47994,
    "c": 0.16472,
    "h": 295.8
  },
  "luminance": 0.09895
}

Semantic roles & 50–950 ramp

primary
#6842AE
secondary
#AEC28A
accent
#D553A7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6842AE

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

Preview Lab → · Contrast checker → · Palette generator →

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