#6839C7#6839C7

#6839C7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.7% C 0.206 H 292.1°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#6839C7
RGBrgb(104, 57, 199)
HSLhsl(260, 56%, 50%)
HSVhsv(260, 71%, 78%)
CMYKcmyk(47.7%, 71.4%, 0%, 22%)
CIE-LABlab(37.83, 52.31, -66.50)
CIE-LCHlch(37.83, 84.61, 308.19°)
OKLaboklab(48.72% 0.0775 -0.1907)
OKLCHoklch(48.72% 0.206 292.1)
XYZxyz(17.4780, 9.9922, 55.0295)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839C7 #98C739
analogous
#3951C7 #6839C7 #AF39C7
triadic
#6839C7 #C76839 #39C768
tetradic
#6839C7 #C73951 #98C739 #39C7AF
square
#6839C7 #C73951 #98C739 #39C7AF
split-complementary
#6839C7 #C7AF39 #51C739
monochromatic
#361D68 #4F2B98 #6839C7 #8C69D4 #B198E2

Accessibility & contrast

On white

7.00
#6839C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#6839C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6839C7
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839C7#FFFFFF#000000##FFFFFF
##6839C71.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#0056C4
Tritanopia (blue-blind)
#4A5E7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6839c7;
/* rgb */ color: rgb(104, 57, 199);
/* oklch */ color: oklch(48.7% 0.206 292.1);
Tailwind
colors: {
  custom: {
    50: '#9c73d9',
    500: '#6839c7',
    950: '#000000',
  },
}
SCSS
$custom: #6839c7;
$custom-light: #9c73d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6839c7",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 199
  },
  "hsl": {
    "h": 259.859,
    "s": 55.906,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48722,
    "c": 0.20586,
    "h": 292.1
  },
  "luminance": 0.09993
}

Semantic roles & 50–950 ramp

primary
#6839C7
secondary
#B9CE8E
accent
#DF49AD
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6839C7

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

Preview Lab → · Contrast checker → · Palette generator →

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