#6839B2#6839B2

#6839B2 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.182 H 296.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#6839B2
RGBrgb(104, 57, 178)
HSLhsl(263, 51%, 46%)
HSVhsv(263, 68%, 70%)
CMYKcmyk(41.6%, 68%, 0%, 30.2%)
CIE-LABlab(36.14, 46.67, -56.90)
CIE-LCHlch(36.14, 73.59, 309.36°)
OKLaboklab(47% 0.0812 -0.1625)
OKLCHoklch(47% 0.182 296.6)
XYZxyz(15.2058, 9.0834, 43.0630)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839B2 #83B239
analogous
#3946B2 #6839B2 #A439B2
triadic
#6839B2 #B26839 #39B268
tetradic
#6839B2 #B23946 #83B239 #39B2A4
square
#6839B2 #B23946 #83B239 #39B2A4
split-complementary
#6839B2 #B2A439 #46B239
monochromatic
#321B55 #4D2A84 #6839B2 #885DCB #AA8BDA

Accessibility & contrast

On white

7.46
#6839B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#6839B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839B2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839B2#FFFFFF#000000##FFFFFF
##6839B21.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#555671
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6839b2;
/* rgb */ color: rgb(104, 57, 178);
/* oklch */ color: oklch(47.0% 0.182 296.6);
Tailwind
colors: {
  custom: {
    50: '#9973ca',
    500: '#6839b2',
    950: '#000000',
  },
}
SCSS
$custom: #6839b2;
$custom-light: #9973ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6839b2",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 263.306,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46997,
    "c": 0.18167,
    "h": 296.6
  },
  "luminance": 0.09084
}

Semantic roles & 50–950 ramp

primary
#6839B2
secondary
#ABC482
accent
#DB4DA4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6839B2

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

Preview Lab → · Contrast checker → · Palette generator →

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