#6840A3#6840A3

#6840A3 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 46.9% C 0.154 H 299.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#6840A3
RGBrgb(104, 64, 163)
HSLhsl(264, 44%, 45%)
HSVhsv(264, 61%, 64%)
CMYKcmyk(36.2%, 60.7%, 0%, 36.1%)
CIE-LABlab(36.47, 38.85, -47.43)
CIE-LCHlch(36.47, 61.31, 309.32°)
OKLaboklab(46.89% 0.0745 -0.1346)
OKLCHoklch(46.89% 0.154 299)
XYZxyz(14.1515, 9.2540, 35.6839)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840A3 #7BA340
analogous
#404AA3 #6840A3 #9940A3
triadic
#6840A3 #A36840 #40A368
tetradic
#6840A3 #A3404A #7BA340 #40A399
square
#6840A3 #A3404A #7BA340 #40A399
split-complementary
#6840A3 #A39940 #4AA340
monochromatic
#301D4B #4C2F77 #6840A3 #8760C0 #A88CD2

Accessibility & contrast

On white

7.37
#6840A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6840A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6840A3
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840A3#FFFFFF#000000##FFFFFF
##6840A31.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A6
Deuteranopia (green-blind)
#1C55A1
Tritanopia (blue-blind)
#5B556B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6840a3;
/* rgb */ color: rgb(104, 64, 163);
/* oklch */ color: oklch(46.9% 0.154 299.0);
Tailwind
colors: {
  custom: {
    50: '#9777bf',
    500: '#6840a3',
    950: '#000000',
  },
}
SCSS
$custom: #6840a3;
$custom-light: #9777bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6840a3",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 264.242,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46888,
    "c": 0.15391,
    "h": 299
  },
  "luminance": 0.09254
}

Semantic roles & 50–950 ramp

primary
#6840A3
secondary
#A5BD82
accent
#D354A0
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6840A3

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

Preview Lab → · Contrast checker → · Palette generator →

#6840A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva