#6839D6#6839D6

#6839D6 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.0% C 0.223 H 289.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#6839D6
RGBrgb(104, 57, 214)
HSLhsl(258, 66%, 53%)
HSVhsv(258, 73%, 84%)
CMYKcmyk(51.4%, 73.4%, 0%, 16.1%)
CIE-LABlab(39.11, 56.37, -73.09)
CIE-LCHlch(39.11, 92.30, 307.64°)
OKLaboklab(50.02% 0.0742 -0.21)
OKLCHoklch(50.02% 0.223 289.5)
XYZxyz(19.3061, 10.7235, 64.6579)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839D6 #A7D639
analogous
#3958D6 #6839D6 #B639D6
triadic
#6839D6 #D66839 #39D668
tetradic
#6839D6 #D63958 #A7D639 #39D6B6
square
#6839D6 #D63958 #A7D639 #39D6B6
split-complementary
#6839D6 #D6B639 #58D639
monochromatic
#37197B #4D24AE #6839D6 #8F6CE0 #B59EEB

Accessibility & contrast

On white

6.68
#6839D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6839D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6839D6
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839D6#FFFFFF#000000##FFFFFF
##6839D61.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDB
Deuteranopia (green-blind)
#0058D3
Tritanopia (blue-blind)
#3F6485
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6839d6;
/* rgb */ color: rgb(104, 57, 214);
/* oklch */ color: oklch(50.0% 0.223 289.5);
Tailwind
colors: {
  custom: {
    50: '#9e74e4',
    500: '#6839d6',
    950: '#000000',
  },
}
SCSS
$custom: #6839d6;
$custom-light: #9e74e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6839d6",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 214
  },
  "hsl": {
    "h": 257.962,
    "s": 65.69,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50023,
    "c": 0.22274,
    "h": 289.5
  },
  "luminance": 0.10724
}

Semantic roles & 50–950 ramp

primary
#6839D6
secondary
#C3D794
accent
#E93FB6
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6839D6

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

Preview Lab → · Contrast checker → · Palette generator →

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