#6840B9#6840B9

#6840B9 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.181 H 293.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#6840B9
RGBrgb(104, 64, 185)
HSLhsl(260, 49%, 49%)
HSVhsv(260, 65%, 73%)
CMYKcmyk(43.8%, 65.4%, 0%, 27.5%)
CIE-LABlab(38.04, 44.83, -57.95)
CIE-LCHlch(38.04, 73.27, 307.72°)
OKLaboklab(48.53% 0.0729 -0.1656)
OKLCHoklch(48.53% 0.181 293.8)
XYZxyz(16.2969, 10.1122, 46.9827)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840B9 #91B940
analogous
#4055B9 #6840B9 #A540B9
triadic
#6840B9 #B96840 #40B968
tetradic
#6840B9 #B94055 #91B940 #40B9A5
square
#6840B9 #B94055 #91B940 #40B9A5
split-complementary
#6840B9 #B9A540 #55B940
monochromatic
#35215E #4E308C #6840B9 #8B6BCC #AE98DB

Accessibility & contrast

On white

6.95
#6840B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6840B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840B9
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840B9#FFFFFF#000000##FFFFFF
##6840B91.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#515D77
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6840b9;
/* rgb */ color: rgb(104, 64, 185);
/* oklch */ color: oklch(48.5% 0.181 293.8);
Tailwind
colors: {
  custom: {
    50: '#9977cf',
    500: '#6840b9',
    950: '#000000',
  },
}
SCSS
$custom: #6840b9;
$custom-light: #9977cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6840b9",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 259.835,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48529,
    "c": 0.18094,
    "h": 293.8
  },
  "luminance": 0.10113
}

Semantic roles & 50–950 ramp

primary
#6840B9
secondary
#B4C78E
accent
#D850AB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6840B9

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

Preview Lab → · Contrast checker → · Palette generator →

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