#6840DB#6840DB

#6840DB is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.221 H 287.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#6840DB
RGBrgb(104, 64, 219)
HSLhsl(255, 68%, 55%)
HSVhsv(255, 71%, 86%)
CMYKcmyk(52.5%, 70.8%, 0%, 14.1%)
CIE-LABlab(40.77, 54.28, -73.23)
CIE-LCHlch(40.77, 91.16, 306.55°)
OKLaboklab(51.33% 0.0674 -0.2105)
OKLCHoklch(51.33% 0.221 287.8)
XYZxyz(20.3247, 11.7233, 68.1960)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840DB #B3DB40
analogous
#4065DB #6840DB #B640DB
triadic
#6840DB #DB6840 #40DB68
tetradic
#6840DB #DB4065 #B3DB40 #40DBB6
square
#6840DB #DB4065 #B3DB40 #40DBB6
split-complementary
#6840DB #DBB640 #65DB40
monochromatic
#361987 #4A23BB #6840DB #9173E5 #B9A7EE

Accessibility & contrast

On white

6.28
#6840DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6840DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840DB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840DB#FFFFFF#000000##FFFFFF
##6840DB1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#005CD8
Tritanopia (blue-blind)
#3B6989
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6840db;
/* rgb */ color: rgb(104, 64, 219);
/* oklch */ color: oklch(51.3% 0.221 287.8);
Tailwind
colors: {
  custom: {
    50: '#9e78e7',
    500: '#6840db',
    950: '#000000',
  },
}
SCSS
$custom: #6840db;
$custom-light: #9e78e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6840db",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 255.484,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51331,
    "c": 0.22102,
    "h": 287.8
  },
  "luminance": 0.11724
}

Semantic roles & 50–950 ramp

primary
#6840DB
secondary
#CBDC9B
accent
#EB3DBE
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6840DB

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

Preview Lab → · Contrast checker → · Palette generator →

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