#6840BF#6840BF

#6840BF is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.188 H 292.6°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#6840BF
RGBrgb(104, 64, 191)
HSLhsl(259, 50%, 50%)
HSVhsv(259, 66%, 75%)
CMYKcmyk(45.5%, 66.5%, 0%, 25.1%)
CIE-LABlab(38.50, 46.49, -60.73)
CIE-LCHlch(38.50, 76.48, 307.43°)
OKLaboklab(49% 0.0722 -0.1738)
OKLCHoklch(49% 0.188 292.6)
XYZxyz(16.9437, 10.3709, 50.3892)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840BF #97BF40
analogous
#4057BF #6840BF #A840BF
triadic
#6840BF #BF6840 #40BF68
tetradic
#6840BF #BF4057 #97BF40 #40BFA8
square
#6840BF #BF4057 #97BF40 #40BFA8
split-complementary
#6840BF #BFA840 #57BF40
monochromatic
#362163 #4F3191 #6840BF #8C6ECE #B09CDE

Accessibility & contrast

On white

6.83
#6840BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6840BF
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840BF#FFFFFF#000000##FFFFFF
##6840BF1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#4E5F7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6840bf;
/* rgb */ color: rgb(104, 64, 191);
/* oklch */ color: oklch(49.0% 0.188 292.6);
Tailwind
colors: {
  custom: {
    50: '#9a77d3',
    500: '#6840bf',
    950: '#000000',
  },
}
SCSS
$custom: #6840bf;
$custom-light: #9a77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6840bf",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 258.898,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49002,
    "c": 0.18817,
    "h": 292.6
  },
  "luminance": 0.10371
}

Semantic roles & 50–950 ramp

primary
#6840BF
secondary
#B8CA91
accent
#D94EAE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6840BF

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

Preview Lab → · Contrast checker → · Palette generator →

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