#6839B5#6839B5

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

Color values

HEX#6839B5
RGBrgb(104, 57, 181)
HSLhsl(263, 52%, 47%)
HSVhsv(263, 69%, 71%)
CMYKcmyk(42.5%, 68.5%, 0%, 29%)
CIE-LABlab(36.38, 47.47, -58.30)
CIE-LCHlch(36.38, 75.18, 309.15°)
OKLaboklab(47.24% 0.0808 -0.1666)
OKLCHoklch(47.24% 0.185 295.9)
XYZxyz(15.5103, 9.2052, 44.6667)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839B5 #86B539
analogous
#3948B5 #6839B5 #A639B5
triadic
#6839B5 #B56839 #39B568
tetradic
#6839B5 #B53948 #86B539 #39B5A6
square
#6839B5 #B53948 #86B539 #39B5A6
split-complementary
#6839B5 #B5A639 #48B539
monochromatic
#331C58 #4D2A86 #6839B5 #885FCD #AB8DDB

Accessibility & contrast

On white

7.39
#6839B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6839B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839B5
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839B5#FFFFFF#000000##FFFFFF
##6839B51.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#545772
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6839b5;
/* rgb */ color: rgb(104, 57, 181);
/* oklch */ color: oklch(47.2% 0.185 295.9);
Tailwind
colors: {
  custom: {
    50: '#9973cc',
    500: '#6839b5',
    950: '#000000',
  },
}
SCSS
$custom: #6839b5;
$custom-light: #9973cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6839b5",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 262.742,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47236,
    "c": 0.18516,
    "h": 295.9
  },
  "luminance": 0.09206
}

Semantic roles & 50–950 ramp

primary
#6839B5
secondary
#ADC684
accent
#DC4CA5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6839B5

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

Preview Lab → · Contrast checker → · Palette generator →

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