#6840CF#6840CF

#6840CF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.207 H 289.7°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#6840CF
RGBrgb(104, 64, 207)
HSLhsl(257, 60%, 53%)
HSVhsv(257, 69%, 81%)
CMYKcmyk(49.8%, 69.1%, 0%, 18.8%)
CIE-LABlab(39.77, 50.94, -67.97)
CIE-LCHlch(39.77, 84.94, 306.85°)
OKLaboklab(50.31% 0.0697 -0.195)
OKLCHoklch(50.31% 0.207 289.7)
XYZxyz(18.8016, 11.1140, 60.1739)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840CF #A7CF40
analogous
#405FCF #6840CF #AF40CF
triadic
#6840CF #CF6840 #40CF68
tetradic
#6840CF #CF405F #A7CF40 #40CFAF
square
#6840CF #CF405F #A7CF40 #40CFAF
split-complementary
#6840CF #CFAF40 #5FCF40
monochromatic
#371E77 #4D2AA8 #6840CF #8F71DB #B5A2E8

Accessibility & contrast

On white

6.52
#6840CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6840CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840CF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840CF#FFFFFF#000000##FFFFFF
##6840CF1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#446583
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6840cf;
/* rgb */ color: rgb(104, 64, 207);
/* oklch */ color: oklch(50.3% 0.207 289.7);
Tailwind
colors: {
  custom: {
    50: '#9c78df',
    500: '#6840cf',
    950: '#000000',
  },
}
SCSS
$custom: #6840cf;
$custom-light: #9c78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6840cf",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 256.783,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50309,
    "c": 0.20711,
    "h": 289.7
  },
  "luminance": 0.11115
}

Semantic roles & 50–950 ramp

primary
#6840CF
secondary
#C3D497
accent
#E345B7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6840CF

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

Preview Lab → · Contrast checker → · Palette generator →

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