#6839C2#6839C2

#6839C2 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.200 H 293.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#6839C2
RGBrgb(104, 57, 194)
HSLhsl(261, 55%, 49%)
HSVhsv(261, 71%, 76%)
CMYKcmyk(46.4%, 70.6%, 0%, 23.9%)
CIE-LABlab(37.42, 50.96, -64.26)
CIE-LCHlch(37.42, 82.01, 308.42°)
OKLaboklab(48.3% 0.0785 -0.1841)
OKLCHoklch(48.3% 0.2 293.1)
XYZxyz(16.9070, 9.7638, 52.0223)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839C2 #93C239
analogous
#394FC2 #6839C2 #AD39C2
triadic
#6839C2 #C26839 #39C268
tetradic
#6839C2 #C2394F #93C239 #39C2AD
square
#6839C2 #C2394F #93C239 #39C2AD
split-complementary
#6839C2 #C2AD39 #4FC239
monochromatic
#351D63 #4F2B93 #6839C2 #8B66D2 #AF95E0

Accessibility & contrast

On white

7.11
#6839C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6839C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839C2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839C2#FFFFFF#000000##FFFFFF
##6839C21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#4D5C79
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6839c2;
/* rgb */ color: rgb(104, 57, 194);
/* oklch */ color: oklch(48.3% 0.200 293.1);
Tailwind
colors: {
  custom: {
    50: '#9b73d5',
    500: '#6839c2',
    950: '#000000',
  },
}
SCSS
$custom: #6839c2;
$custom-light: #9b73d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6839c2",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 194
  },
  "hsl": {
    "h": 260.584,
    "s": 54.582,
    "l": 49.216
  },
  "oklch": {
    "l": 0.483,
    "c": 0.20016,
    "h": 293.1
  },
  "luminance": 0.09764
}

Semantic roles & 50–950 ramp

primary
#6839C2
secondary
#B5CB8B
accent
#DE4AAB
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6839C2

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

Preview Lab → · Contrast checker → · Palette generator →

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