#6839B9#6839B9

#6839B9 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.190 H 295.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#6839B9
RGBrgb(104, 57, 185)
HSLhsl(262, 53%, 47%)
HSVhsv(262, 69%, 73%)
CMYKcmyk(43.8%, 69.2%, 0%, 27.5%)
CIE-LABlab(36.69, 48.54, -60.15)
CIE-LCHlch(36.69, 77.30, 308.90°)
OKLaboklab(47.56% 0.0802 -0.172)
OKLCHoklch(47.56% 0.19 295)
XYZxyz(15.9267, 9.3717, 46.8593)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839B9 #8AB939
analogous
#394AB9 #6839B9 #A839B9
triadic
#6839B9 #B96839 #39B968
tetradic
#6839B9 #B9394A #8AB939 #39B9A8
square
#6839B9 #B9394A #8AB939 #39B9A8
split-complementary
#6839B9 #B9A839 #4AB939
monochromatic
#331C5B #4E2B8A #6839B9 #8961CE #AC90DD

Accessibility & contrast

On white

7.31
#6839B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6839B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839B9
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839B9#FFFFFF#000000##FFFFFF
##6839B91.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0054B6
Tritanopia (blue-blind)
#525975
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6839b9;
/* rgb */ color: rgb(104, 57, 185);
/* oklch */ color: oklch(47.6% 0.190 295.0);
Tailwind
colors: {
  custom: {
    50: '#9a73cf',
    500: '#6839b9',
    950: '#000000',
  },
}
SCSS
$custom: #6839b9;
$custom-light: #9a73cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6839b9",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 262.031,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47558,
    "c": 0.1898,
    "h": 295
  },
  "luminance": 0.09372
}

Semantic roles & 50–950 ramp

primary
#6839B9
secondary
#B0C886
accent
#DC4BA7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6839B9

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

Preview Lab → · Contrast checker → · Palette generator →

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