#6839D5#6839D5

#6839D5 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.9% C 0.222 H 289.6°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#6839D5
RGBrgb(104, 57, 213)
HSLhsl(258, 65%, 53%)
HSVhsv(258, 73%, 84%)
CMYKcmyk(51.2%, 73.2%, 0%, 16.5%)
CIE-LABlab(39.02, 56.10, -72.66)
CIE-LCHlch(39.02, 91.79, 307.67°)
OKLaboklab(49.93% 0.0745 -0.2087)
OKLCHoklch(49.93% 0.222 289.6)
XYZxyz(19.1788, 10.6726, 63.9873)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839D5 #A6D539
analogous
#3958D5 #6839D5 #B639D5
triadic
#6839D5 #D56839 #39D568
tetradic
#6839D5 #D53958 #A6D539 #39D5B6
square
#6839D5 #D53958 #A6D539 #39D5B6
split-complementary
#6839D5 #D5B639 #58D539
monochromatic
#371A7A #4D25AC #6839D5 #8F6BE0 #B59EEA

Accessibility & contrast

On white

6.70
#6839D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6839D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6839D5
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839D5#FFFFFF#000000##FFFFFF
##6839D51.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#406384
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6839d5;
/* rgb */ color: rgb(104, 57, 213);
/* oklch */ color: oklch(49.9% 0.222 289.6);
Tailwind
colors: {
  custom: {
    50: '#9d74e3',
    500: '#6839d5',
    950: '#000000',
  },
}
SCSS
$custom: #6839d5;
$custom-light: #9d74e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6839d5",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 213
  },
  "hsl": {
    "h": 258.077,
    "s": 65,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49934,
    "c": 0.22163,
    "h": 289.6
  },
  "luminance": 0.10673
}

Semantic roles & 50–950 ramp

primary
#6839D5
secondary
#C2D793
accent
#E840B5
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6839D5

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

Preview Lab → · Contrast checker → · Palette generator →

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