#6840CC#6840CC

#6840CC is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.204 H 290.2°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#6840CC
RGBrgb(104, 64, 204)
HSLhsl(257, 58%, 53%)
HSVhsv(257, 69%, 80%)
CMYKcmyk(49%, 68.6%, 0%, 20%)
CIE-LABlab(39.53, 50.10, -66.63)
CIE-LCHlch(39.53, 83.37, 306.94°)
OKLaboklab(50.06% 0.0702 -0.1911)
OKLCHoklch(50.06% 0.204 290.2)
XYZxyz(18.4383, 10.9687, 58.2607)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840CC #A4CC40
analogous
#405ECC #6840CC #AE40CC
triadic
#6840CC #CC6840 #40CC68
tetradic
#6840CC #CC405E #A4CC40 #40CCAE
square
#6840CC #CC405E #A4CC40 #40CCAE
split-complementary
#6840CC #CCAE40 #5ECC40
monochromatic
#371F73 #4E2CA3 #6840CC #8E70D9 #B4A1E6

Accessibility & contrast

On white

6.58
#6840CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6840CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840CC
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840CC#FFFFFF#000000##FFFFFF
##6840CC1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#466381
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6840cc;
/* rgb */ color: rgb(104, 64, 204);
/* oklch */ color: oklch(50.1% 0.204 290.2);
Tailwind
colors: {
  custom: {
    50: '#9c78dd',
    500: '#6840cc',
    950: '#000000',
  },
}
SCSS
$custom: #6840cc;
$custom-light: #9c78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6840cc",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 257.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50059,
    "c": 0.20359,
    "h": 290.2
  },
  "luminance": 0.10969
}

Semantic roles & 50–950 ramp

primary
#6840CC
secondary
#C1D295
accent
#E147B5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6840CC

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

Preview Lab → · Contrast checker → · Palette generator →

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