#6840BC#6840BC

#6840BC is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.8% C 0.185 H 293.1°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#6840BC
RGBrgb(104, 64, 188)
HSLhsl(259, 49%, 49%)
HSVhsv(259, 66%, 74%)
CMYKcmyk(44.7%, 66%, 0%, 26.3%)
CIE-LABlab(38.27, 45.66, -59.35)
CIE-LCHlch(38.27, 74.88, 307.57°)
OKLaboklab(48.76% 0.0725 -0.1697)
OKLCHoklch(48.76% 0.185 293.1)
XYZxyz(16.6169, 10.2402, 48.6682)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840BC #94BC40
analogous
#4056BC #6840BC #A640BC
triadic
#6840BC #BC6840 #40BC68
tetradic
#6840BC #BC4056 #94BC40 #40BCA6
square
#6840BC #BC4056 #94BC40 #40BCA6
split-complementary
#6840BC #BCA640 #56BC40
monochromatic
#352161 #4F308E #6840BC #8B6CCD #AF9ADD

Accessibility & contrast

On white

6.89
#6840BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6840BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840BC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840BC#FFFFFF#000000##FFFFFF
##6840BC1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#505E78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6840bc;
/* rgb */ color: rgb(104, 64, 188);
/* oklch */ color: oklch(48.8% 0.185 293.1);
Tailwind
colors: {
  custom: {
    50: '#9a77d1',
    500: '#6840bc',
    950: '#000000',
  },
}
SCSS
$custom: #6840bc;
$custom-light: #9a77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6840bc",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 259.355,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48764,
    "c": 0.18456,
    "h": 293.1
  },
  "luminance": 0.10241
}

Semantic roles & 50–950 ramp

primary
#6840BC
secondary
#B6C98F
accent
#D94FAC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6840BC

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

Preview Lab → · Contrast checker → · Palette generator →

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