#6839C5#6839C5

#6839C5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.204 H 292.5°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#6839C5
RGBrgb(104, 57, 197)
HSLhsl(260, 55%, 50%)
HSVhsv(260, 71%, 77%)
CMYKcmyk(47.2%, 71.1%, 0%, 22.7%)
CIE-LABlab(37.66, 51.77, -65.61)
CIE-LCHlch(37.66, 83.57, 308.28°)
OKLaboklab(48.55% 0.0779 -0.1881)
OKLCHoklch(48.55% 0.204 292.5)
XYZxyz(17.2473, 9.8999, 53.8146)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839C5 #96C539
analogous
#3950C5 #6839C5 #AE39C5
triadic
#6839C5 #C56839 #39C568
tetradic
#6839C5 #C53950 #96C539 #39C5AE
square
#6839C5 #C53950 #96C539 #39C5AE
split-complementary
#6839C5 #C5AE39 #50C539
monochromatic
#361E66 #4F2B96 #6839C5 #8C68D3 #B097E1

Accessibility & contrast

On white

7.05
#6839C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6839C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839C5
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839C5#FFFFFF#000000##FFFFFF
##6839C51.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#4B5D7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6839c5;
/* rgb */ color: rgb(104, 57, 197);
/* oklch */ color: oklch(48.6% 0.204 292.5);
Tailwind
colors: {
  custom: {
    50: '#9b73d8',
    500: '#6839c5',
    950: '#000000',
  },
}
SCSS
$custom: #6839c5;
$custom-light: #9b73d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6839c5",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 197
  },
  "hsl": {
    "h": 260.143,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48552,
    "c": 0.20358,
    "h": 292.5
  },
  "luminance": 0.09901
}

Semantic roles & 50–950 ramp

primary
#6839C5
secondary
#B7CD8D
accent
#DE49AC
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6839C5

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

Preview Lab → · Contrast checker → · Palette generator →

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