#6840C8#6840C8

#6840C8 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.199 H 290.9°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#6840C8
RGBrgb(104, 64, 200)
HSLhsl(258, 55%, 52%)
HSVhsv(258, 68%, 78%)
CMYKcmyk(48%, 68%, 0%, 21.6%)
CIE-LABlab(39.21, 48.99, -64.83)
CIE-LCHlch(39.21, 81.26, 307.07°)
OKLaboklab(49.73% 0.0709 -0.1858)
OKLCHoklch(49.73% 0.199 290.9)
XYZxyz(17.9647, 10.7793, 55.7664)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840C8 #A0C840
analogous
#405CC8 #6840C8 #AC40C8
triadic
#6840C8 #C86840 #40C868
tetradic
#6840C8 #C8405C #A0C840 #40C8AC
square
#6840C8 #C8405C #A0C840 #40C8AC
split-complementary
#6840C8 #C8AC40 #5CC840
monochromatic
#37206E #4E2D9D #6840C8 #8E70D6 #B39FE3

Accessibility & contrast

On white

6.65
#6840C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6840C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840C8
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840C8#FFFFFF#000000##FFFFFF
##6840C81.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#49627F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6840c8;
/* rgb */ color: rgb(104, 64, 200);
/* oklch */ color: oklch(49.7% 0.199 290.9);
Tailwind
colors: {
  custom: {
    50: '#9b78da',
    500: '#6840c8',
    950: '#000000',
  },
}
SCSS
$custom: #6840c8;
$custom-light: #9b78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6840c8",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 257.647,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49729,
    "c": 0.19888,
    "h": 290.9
  },
  "luminance": 0.1078
}

Semantic roles & 50–950 ramp

primary
#6840C8
secondary
#BED094
accent
#DF49B3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6840C8

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

Preview Lab → · Contrast checker → · Palette generator →

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