#6840BB#6840BB

#6840BB is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.183 H 293.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#6840BB
RGBrgb(104, 64, 187)
HSLhsl(260, 49%, 49%)
HSVhsv(260, 66%, 73%)
CMYKcmyk(44.4%, 65.8%, 0%, 26.7%)
CIE-LABlab(38.19, 45.38, -58.89)
CIE-LCHlch(38.19, 74.34, 307.62°)
OKLaboklab(48.69% 0.0727 -0.1683)
OKLCHoklch(48.69% 0.183 293.3)
XYZxyz(16.5095, 10.1972, 48.1025)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840BB #93BB40
analogous
#4056BB #6840BB #A640BB
triadic
#6840BB #BB6840 #40BB68
tetradic
#6840BB #BB4056 #93BB40 #40BBA6
square
#6840BB #BB4056 #93BB40 #40BBA6
split-complementary
#6840BB #BBA640 #56BB40
monochromatic
#352160 #4F308D #6840BB #8B6CCD #AF99DC

Accessibility & contrast

On white

6.91
#6840BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6840BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840BB
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840BB#FFFFFF#000000##FFFFFF
##6840BB1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#505D78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6840bb;
/* rgb */ color: rgb(104, 64, 187);
/* oklch */ color: oklch(48.7% 0.183 293.3);
Tailwind
colors: {
  custom: {
    50: '#9a77d0',
    500: '#6840bb',
    950: '#000000',
  },
}
SCSS
$custom: #6840bb;
$custom-light: #9a77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6840bb",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 259.512,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48686,
    "c": 0.18335,
    "h": 293.3
  },
  "luminance": 0.10198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6840BB

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

Preview Lab → · Contrast checker → · Palette generator →

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