#6840CD#6840CD

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

Color values

HEX#6840CD
RGBrgb(104, 64, 205)
HSLhsl(257, 59%, 53%)
HSVhsv(257, 69%, 80%)
CMYKcmyk(49.3%, 68.8%, 0%, 19.6%)
CIE-LABlab(39.61, 50.38, -67.08)
CIE-LCHlch(39.61, 83.89, 306.91°)
OKLaboklab(50.14% 0.07 -0.1924)
OKLCHoklch(50.14% 0.205 290)
XYZxyz(18.5586, 11.0169, 58.8944)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840CD #A5CD40
analogous
#405FCD #6840CD #AE40CD
triadic
#6840CD #CD6840 #40CD68
tetradic
#6840CD #CD405F #A5CD40 #40CDAE
square
#6840CD #CD405F #A5CD40 #40CDAE
split-complementary
#6840CD #CDAE40 #5FCD40
monochromatic
#371E74 #4E2BA5 #6840CD #8E71DA #B5A1E6

Accessibility & contrast

On white

6.56
#6840CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6840CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840CD
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840CD#FFFFFF#000000##FFFFFF
##6840CD1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#466482
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6840cd;
/* rgb */ color: rgb(104, 64, 205);
/* oklch */ color: oklch(50.1% 0.205 290.0);
Tailwind
colors: {
  custom: {
    50: '#9c78dd',
    500: '#6840cd',
    950: '#000000',
  },
}
SCSS
$custom: #6840cd;
$custom-light: #9c78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6840cd",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 257.021,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50142,
    "c": 0.20477,
    "h": 290
  },
  "luminance": 0.11018
}

Semantic roles & 50–950 ramp

primary
#6840CD
secondary
#C2D396
accent
#E246B6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6840CD

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

Preview Lab → · Contrast checker → · Palette generator →

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