#6840CE#6840CE

#6840CE is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.2% C 0.206 H 289.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#6840CE
RGBrgb(104, 64, 206)
HSLhsl(257, 59%, 53%)
HSVhsv(257, 69%, 81%)
CMYKcmyk(49.5%, 68.9%, 0%, 19.2%)
CIE-LABlab(39.69, 50.66, -67.52)
CIE-LCHlch(39.69, 84.41, 306.88°)
OKLaboklab(50.23% 0.0699 -0.1937)
OKLCHoklch(50.23% 0.206 289.8)
XYZxyz(18.6797, 11.0653, 59.5321)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840CE #A6CE40
analogous
#405FCE #6840CE #AF40CE
triadic
#6840CE #CE6840 #40CE68
tetradic
#6840CE #CE405F #A6CE40 #40CEAF
square
#6840CE #CE405F #A6CE40 #40CEAF
split-complementary
#6840CE #CEAF40 #5FCE40
monochromatic
#371E75 #4D2BA6 #6840CE #8F71DA #B5A1E7

Accessibility & contrast

On white

6.54
#6840CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6840CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840CE
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840CE#FFFFFF#000000##FFFFFF
##6840CE1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#005ACB
Tritanopia (blue-blind)
#456482
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6840ce;
/* rgb */ color: rgb(104, 64, 206);
/* oklch */ color: oklch(50.2% 0.206 289.8);
Tailwind
colors: {
  custom: {
    50: '#9c78de',
    500: '#6840ce',
    950: '#000000',
  },
}
SCSS
$custom: #6840ce;
$custom-light: #9c78de;
$custom-dark: #000000;
JSON
{
  "hex": "#6840ce",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 256.901,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50226,
    "c": 0.20594,
    "h": 289.8
  },
  "luminance": 0.11066
}

Semantic roles & 50–950 ramp

primary
#6840CE
secondary
#C2D496
accent
#E245B6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6840CE

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

Preview Lab → · Contrast checker → · Palette generator →

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