#6839BF#6839BF

#6839BF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.0% C 0.197 H 293.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#6839BF
RGBrgb(104, 57, 191)
HSLhsl(261, 54%, 49%)
HSVhsv(261, 70%, 75%)
CMYKcmyk(45.5%, 70.2%, 0%, 25.1%)
CIE-LABlab(37.17, 50.15, -62.90)
CIE-LCHlch(37.17, 80.45, 308.57°)
OKLaboklab(48.05% 0.0791 -0.1801)
OKLCHoklch(48.05% 0.197 293.7)
XYZxyz(16.5734, 9.6304, 50.2657)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839BF #90BF39
analogous
#394DBF #6839BF #AB39BF
triadic
#6839BF #BF6839 #39BF68
tetradic
#6839BF #BF394D #90BF39 #39BFAB
square
#6839BF #BF394D #90BF39 #39BFAB
split-complementary
#6839BF #BFAB39 #4DBF39
monochromatic
#351D61 #4E2B90 #6839BF #8A64D1 #AE93DF

Accessibility & contrast

On white

7.18
#6839BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6839BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839BF
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839BF#FFFFFF#000000##FFFFFF
##6839BF1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#0055BC
Tritanopia (blue-blind)
#4F5B78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6839bf;
/* rgb */ color: rgb(104, 57, 191);
/* oklch */ color: oklch(48.0% 0.197 293.7);
Tailwind
colors: {
  custom: {
    50: '#9b73d3',
    500: '#6839bf',
    950: '#000000',
  },
}
SCSS
$custom: #6839bf;
$custom-light: #9b73d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6839bf",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 191
  },
  "hsl": {
    "h": 261.045,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4805,
    "c": 0.19672,
    "h": 293.7
  },
  "luminance": 0.09631
}

Semantic roles & 50–950 ramp

primary
#6839BF
secondary
#B4CA8A
accent
#DD4AAA
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6839BF

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

Preview Lab → · Contrast checker → · Palette generator →

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