#6840D1#6840D1

#6840D1 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.209 H 289.3°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#6840D1
RGBrgb(104, 64, 209)
HSLhsl(257, 61%, 54%)
HSVhsv(257, 69%, 82%)
CMYKcmyk(50.2%, 69.4%, 0%, 18%)
CIE-LABlab(39.94, 51.49, -68.86)
CIE-LCHlch(39.94, 85.98, 306.79°)
OKLaboklab(50.48% 0.0693 -0.1976)
OKLCHoklch(50.48% 0.209 289.3)
XYZxyz(19.0476, 11.2125, 61.4698)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840D1 #A9D140
analogous
#4060D1 #6840D1 #B040D1
triadic
#6840D1 #D16840 #40D168
tetradic
#6840D1 #D14060 #A9D140 #40D1B0
square
#6840D1 #D14060 #A9D140 #40D1B0
split-complementary
#6840D1 #D1B040 #60D140
monochromatic
#371D79 #4D29AB #6840D1 #8F71DD #B6A3E9

Accessibility & contrast

On white

6.48
#6840D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6840D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840D1
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840D1#FFFFFF#000000##FFFFFF
##6840D11.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#005BCE
Tritanopia (blue-blind)
#436584
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6840d1;
/* rgb */ color: rgb(104, 64, 209);
/* oklch */ color: oklch(50.5% 0.209 289.3);
Tailwind
colors: {
  custom: {
    50: '#9c78e0',
    500: '#6840d1',
    950: '#000000',
  },
}
SCSS
$custom: #6840d1;
$custom-light: #9c78e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6840d1",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 256.552,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50477,
    "c": 0.20944,
    "h": 289.3
  },
  "luminance": 0.11213
}

Semantic roles & 50–950 ramp

primary
#6840D1
secondary
#C4D597
accent
#E444B8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6840D1

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

Preview Lab → · Contrast checker → · Palette generator →

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