#6839CD#6839CD

#6839CD is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.213 H 291.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#6839CD
RGBrgb(104, 57, 205)
HSLhsl(259, 60%, 51%)
HSVhsv(259, 72%, 80%)
CMYKcmyk(49.3%, 72.2%, 0%, 19.6%)
CIE-LABlab(38.33, 53.93, -69.16)
CIE-LCHlch(38.33, 87.70, 307.95°)
OKLaboklab(49.24% 0.0763 -0.1985)
OKLCHoklch(49.24% 0.213 291)
XYZxyz(18.1884, 10.2764, 58.7710)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839CD #9ECD39
analogous
#3954CD #6839CD #B239CD
triadic
#6839CD #CD6839 #39CD68
tetradic
#6839CD #CD3954 #9ECD39 #39CDB2
square
#6839CD #CD3954 #9ECD39 #39CDB2
split-complementary
#6839CD #CDB239 #54CD39
monochromatic
#371C6F #4F28A0 #6839CD #8D6AD9 #B39BE6

Accessibility & contrast

On white

6.87
#6839CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6839CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6839CD
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839CD#FFFFFF#000000##FFFFFF
##6839CD1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#466080
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6839cd;
/* rgb */ color: rgb(104, 57, 205);
/* oklch */ color: oklch(49.2% 0.213 291.0);
Tailwind
colors: {
  custom: {
    50: '#9c74dd',
    500: '#6839cd',
    950: '#000000',
  },
}
SCSS
$custom: #6839cd;
$custom-light: #9c74dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6839cd",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 205
  },
  "hsl": {
    "h": 259.054,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49236,
    "c": 0.21264,
    "h": 291
  },
  "luminance": 0.10277
}

Semantic roles & 50–950 ramp

primary
#6839CD
secondary
#BDD290
accent
#E345B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6839CD

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

Preview Lab → · Contrast checker → · Palette generator →

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