#6840CA#6840CA

#6840CA is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.201 H 290.5°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#6840CA
RGBrgb(104, 64, 202)
HSLhsl(257, 57%, 52%)
HSVhsv(257, 68%, 79%)
CMYKcmyk(48.5%, 68.3%, 0%, 20.8%)
CIE-LABlab(39.37, 49.54, -65.73)
CIE-LCHlch(39.37, 82.31, 307.00°)
OKLaboklab(49.89% 0.0705 -0.1885)
OKLCHoklch(49.89% 0.201 290.5)
XYZxyz(18.2000, 10.8734, 57.0055)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840CA #A2CA40
analogous
#405DCA #6840CA #AD40CA
triadic
#6840CA #CA6840 #40CA68
tetradic
#6840CA #CA405D #A2CA40 #40CAAD
square
#6840CA #CA405D #A2CA40 #40CAAD
split-complementary
#6840CA #CAAD40 #5DCA40
monochromatic
#371F70 #4E2CA0 #6840CA #8E70D7 #B4A0E5

Accessibility & contrast

On white

6.61
#6840CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6840CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840CA
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840CA#FFFFFF#000000##FFFFFF
##6840CA1.006.613.176.61
#FFFFFF6.611.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#486380
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6840ca;
/* rgb */ color: rgb(104, 64, 202);
/* oklch */ color: oklch(49.9% 0.201 290.5);
Tailwind
colors: {
  custom: {
    50: '#9b78db',
    500: '#6840ca',
    950: '#000000',
  },
}
SCSS
$custom: #6840ca;
$custom-light: #9b78db;
$custom-dark: #000000;
JSON
{
  "hex": "#6840ca",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 257.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49894,
    "c": 0.20123,
    "h": 290.5
  },
  "luminance": 0.10874
}

Semantic roles & 50–950 ramp

primary
#6840CA
secondary
#C0D195
accent
#E048B4
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6840CA

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

Preview Lab → · Contrast checker → · Palette generator →

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