#6840DF#6840DF

#6840DF is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.7% C 0.226 H 287.2°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#6840DF
RGBrgb(104, 64, 223)
HSLhsl(255, 71%, 56%)
HSVhsv(255, 71%, 87%)
CMYKcmyk(53.4%, 71.3%, 0%, 12.5%)
CIE-LABlab(41.12, 55.40, -74.96)
CIE-LCHlch(41.12, 93.21, 306.47°)
OKLaboklab(51.68% 0.0666 -0.2155)
OKLCHoklch(51.68% 0.226 287.2)
XYZxyz(20.8576, 11.9365, 71.0027)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840DF #B7DF40
analogous
#4068DF #6840DF #B740DF
triadic
#6840DF #DF6840 #40DF68
tetradic
#6840DF #DF4068 #B7DF40 #40DFB7
square
#6840DF #DF4068 #B7DF40 #40DFB7
split-complementary
#6840DF #DFB740 #68DF40
monochromatic
#35188D #4920C1 #6840DF #9174E8 #BBA9F1

Accessibility & contrast

On white

6.20
#6840DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#6840DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840DF
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840DF#FFFFFF#000000##FFFFFF
##6840DF1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005CDC
Tritanopia (blue-blind)
#376B8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6840df;
/* rgb */ color: rgb(104, 64, 223);
/* oklch */ color: oklch(51.7% 0.226 287.2);
Tailwind
colors: {
  custom: {
    50: '#9e78ea',
    500: '#6840df',
    950: '#000000',
  },
}
SCSS
$custom: #6840df;
$custom-light: #9e78ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6840df",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 255.094,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51679,
    "c": 0.2256,
    "h": 287.2
  },
  "luminance": 0.11938
}

Semantic roles & 50–950 ramp

primary
#6840DF
secondary
#CEDE9D
accent
#EE3AC1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6840DF

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

Preview Lab → · Contrast checker → · Palette generator →

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