#6839B4#6839B4

#6839B4 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.2% C 0.184 H 296.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#6839B4
RGBrgb(104, 57, 180)
HSLhsl(263, 52%, 46%)
HSVhsv(263, 68%, 71%)
CMYKcmyk(42.2%, 68.3%, 0%, 29.4%)
CIE-LABlab(36.30, 47.20, -57.84)
CIE-LCHlch(36.30, 74.65, 309.22°)
OKLaboklab(47.16% 0.0809 -0.1652)
OKLCHoklch(47.16% 0.184 296.1)
XYZxyz(15.4081, 9.1643, 44.1282)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839B4 #85B439
analogous
#3948B4 #6839B4 #A639B4
triadic
#6839B4 #B46839 #39B468
tetradic
#6839B4 #B43948 #85B439 #39B4A6
square
#6839B4 #B43948 #85B439 #39B4A6
split-complementary
#6839B4 #B4A639 #48B439
monochromatic
#321C57 #4D2A86 #6839B4 #885ECC #AA8DDB

Accessibility & contrast

On white

7.41
#6839B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6839B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839B4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839B4#FFFFFF#000000##FFFFFF
##6839B41.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#545772
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6839b4;
/* rgb */ color: rgb(104, 57, 180);
/* oklch */ color: oklch(47.2% 0.184 296.1);
Tailwind
colors: {
  custom: {
    50: '#9973cb',
    500: '#6839b4',
    950: '#000000',
  },
}
SCSS
$custom: #6839b4;
$custom-light: #9973cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6839b4",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 262.927,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47156,
    "c": 0.184,
    "h": 296.1
  },
  "luminance": 0.09165
}

Semantic roles & 50–950 ramp

primary
#6839B4
secondary
#ACC583
accent
#DB4CA5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6839B4

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

Preview Lab → · Contrast checker → · Palette generator →

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