#6839BA#6839BA

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

Color values

HEX#6839BA
RGBrgb(104, 57, 186)
HSLhsl(262, 53%, 48%)
HSVhsv(262, 69%, 73%)
CMYKcmyk(44.1%, 69.4%, 0%, 27.1%)
CIE-LABlab(36.77, 48.81, -60.61)
CIE-LCHlch(36.77, 77.82, 308.84°)
OKLaboklab(47.64% 0.08 -0.1734)
OKLCHoklch(47.64% 0.191 294.8)
XYZxyz(16.0326, 9.4141, 47.4172)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839BA #8BBA39
analogous
#394BBA #6839BA #A839BA
triadic
#6839BA #BA6839 #39BA68
tetradic
#6839BA #BA394B #8BBA39 #39BAA8
square
#6839BA #BA394B #8BBA39 #39BAA8
split-complementary
#6839BA #BAA839 #4BBA39
monochromatic
#341C5C #4E2B8B #6839BA #8961CF #AC90DD

Accessibility & contrast

On white

7.28
#6839BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6839BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839BA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839BA#FFFFFF#000000##FFFFFF
##6839BA1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#515975
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6839ba;
/* rgb */ color: rgb(104, 57, 186);
/* oklch */ color: oklch(47.6% 0.191 294.8);
Tailwind
colors: {
  custom: {
    50: '#9a73d0',
    500: '#6839ba',
    950: '#000000',
  },
}
SCSS
$custom: #6839ba;
$custom-light: #9a73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6839ba",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 261.86,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47639,
    "c": 0.19096,
    "h": 294.8
  },
  "luminance": 0.09414
}

Semantic roles & 50–950 ramp

primary
#6839BA
secondary
#B0C887
accent
#DC4BA8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6839BA

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

Preview Lab → · Contrast checker → · Palette generator →

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