#6840BE#6840BE

#6840BE is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.187 H 292.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#6840BE
RGBrgb(104, 64, 190)
HSLhsl(259, 50%, 50%)
HSVhsv(259, 66%, 75%)
CMYKcmyk(45.3%, 66.3%, 0%, 25.5%)
CIE-LABlab(38.42, 46.21, -60.27)
CIE-LCHlch(38.42, 75.95, 307.48°)
OKLaboklab(48.92% 0.0723 -0.1724)
OKLCHoklch(48.92% 0.187 292.7)
XYZxyz(16.8340, 10.3270, 49.8116)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840BE #96BE40
analogous
#4057BE #6840BE #A740BE
triadic
#6840BE #BE6840 #40BE68
tetradic
#6840BE #BE4057 #96BE40 #40BEA7
square
#6840BE #BE4057 #96BE40 #40BEA7
split-complementary
#6840BE #BEA740 #57BE40
monochromatic
#362162 #4F3190 #6840BE #8C6DCE #B09BDD

Accessibility & contrast

On white

6.85
#6840BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6840BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840BE
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840BE#FFFFFF#000000##FFFFFF
##6840BE1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC2
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#4F5E79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6840be;
/* rgb */ color: rgb(104, 64, 190);
/* oklch */ color: oklch(48.9% 0.187 292.7);
Tailwind
colors: {
  custom: {
    50: '#9a77d2',
    500: '#6840be',
    950: '#000000',
  },
}
SCSS
$custom: #6840be;
$custom-light: #9a77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6840be",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 259.048,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48922,
    "c": 0.18696,
    "h": 292.7
  },
  "luminance": 0.10328
}

Semantic roles & 50–950 ramp

primary
#6840BE
secondary
#B7C990
accent
#D94FAD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6840BE

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

Preview Lab → · Contrast checker → · Palette generator →

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