#6839CC#6839CC

#6839CC is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.212 H 291.2°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#6839CC
RGBrgb(104, 57, 204)
HSLhsl(259, 59%, 51%)
HSVhsv(259, 72%, 80%)
CMYKcmyk(49%, 72.1%, 0%, 20%)
CIE-LABlab(38.25, 53.66, -68.72)
CIE-LCHlch(38.25, 87.19, 307.98°)
OKLaboklab(49.15% 0.0765 -0.1972)
OKLCHoklch(49.15% 0.212 291.2)
XYZxyz(18.0680, 10.2282, 58.1373)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839CC #9DCC39
analogous
#3953CC #6839CC #B139CC
triadic
#6839CC #CC6839 #39CC68
tetradic
#6839CC #CC3953 #9DCC39 #39CCB1
square
#6839CC #CC3953 #9DCC39 #39CCB1
split-complementary
#6839CC #CCB139 #53CC39
monochromatic
#371C6E #4F299F #6839CC #8D6AD9 #B29AE5

Accessibility & contrast

On white

6.89
#6839CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6839CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6839CC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839CC#FFFFFF#000000##FFFFFF
##6839CC1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#47607F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6839cc;
/* rgb */ color: rgb(104, 57, 204);
/* oklch */ color: oklch(49.1% 0.212 291.2);
Tailwind
colors: {
  custom: {
    50: '#9c74dd',
    500: '#6839cc',
    950: '#000000',
  },
}
SCSS
$custom: #6839cc;
$custom-light: #9c74dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6839cc",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 259.184,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49149,
    "c": 0.21152,
    "h": 291.2
  },
  "luminance": 0.10229
}

Semantic roles & 50–950 ramp

primary
#6839CC
secondary
#BCD190
accent
#E246B0
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6839CC

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

Preview Lab → · Contrast checker → · Palette generator →

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