#6839AB#6839AB

#6839AB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.173 H 298.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#6839AB
RGBrgb(104, 57, 171)
HSLhsl(265, 50%, 45%)
HSVhsv(265, 67%, 67%)
CMYKcmyk(39.2%, 66.7%, 0%, 32.9%)
CIE-LABlab(35.61, 44.82, -53.60)
CIE-LCHlch(35.61, 69.86, 309.90°)
OKLaboklab(46.45% 0.0822 -0.1528)
OKLCHoklch(46.45% 0.173 298.3)
XYZxyz(14.5209, 8.8094, 39.4555)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839AB #7CAB39
analogous
#3943AB #6839AB #A139AB
triadic
#6839AB #AB6839 #39AB68
tetradic
#6839AB #AB3943 #7CAB39 #39ABA1
square
#6839AB #AB3943 #7CAB39 #39ABA1
split-complementary
#6839AB #ABA139 #43AB39
monochromatic
#301A4F #4C2A7D #6839AB #8759C8 #A887D7

Accessibility & contrast

On white

7.60
#6839AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6839AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839AB
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839AB#FFFFFF#000000##FFFFFF
##6839AB1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#58536D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6839ab;
/* rgb */ color: rgb(104, 57, 171);
/* oklch */ color: oklch(46.5% 0.173 298.3);
Tailwind
colors: {
  custom: {
    50: '#9872c5',
    500: '#6839ab',
    950: '#000000',
  },
}
SCSS
$custom: #6839ab;
$custom-light: #9872c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6839ab",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 264.737,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4645,
    "c": 0.17347,
    "h": 298.3
  },
  "luminance": 0.0881
}

Semantic roles & 50–950 ramp

primary
#6839AB
secondary
#A6C17F
accent
#DA4EA0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6839AB

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

Preview Lab → · Contrast checker → · Palette generator →

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