#6840BD#6840BD

#6840BD is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.186 H 292.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#6840BD
RGBrgb(104, 64, 189)
HSLhsl(259, 49%, 50%)
HSVhsv(259, 66%, 74%)
CMYKcmyk(45%, 66.1%, 0%, 25.9%)
CIE-LABlab(38.35, 45.93, -59.81)
CIE-LCHlch(38.35, 75.41, 307.52°)
OKLaboklab(48.84% 0.0724 -0.1711)
OKLCHoklch(48.84% 0.186 292.9)
XYZxyz(16.7251, 10.2835, 49.2379)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840BD #95BD40
analogous
#4057BD #6840BD #A740BD
triadic
#6840BD #BD6840 #40BD68
tetradic
#6840BD #BD4057 #95BD40 #40BDA7
square
#6840BD #BD4057 #95BD40 #40BDA7
split-complementary
#6840BD #BDA740 #57BD40
monochromatic
#362162 #4F318F #6840BD #8C6DCD #B09ADD

Accessibility & contrast

On white

6.87
#6840BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6840BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840BD
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840BD#FFFFFF#000000##FFFFFF
##6840BD1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6840bd;
/* rgb */ color: rgb(104, 64, 189);
/* oklch */ color: oklch(48.8% 0.186 292.9);
Tailwind
colors: {
  custom: {
    50: '#9a77d2',
    500: '#6840bd',
    950: '#000000',
  },
}
SCSS
$custom: #6840bd;
$custom-light: #9a77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6840bd",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 259.2,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48843,
    "c": 0.18577,
    "h": 292.9
  },
  "luminance": 0.10284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6840BD

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

Preview Lab → · Contrast checker → · Palette generator →

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