#6839B7#6839B7

#6839B7 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.4% C 0.187 H 295.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#6839B7
RGBrgb(104, 57, 183)
HSLhsl(262, 53%, 47%)
HSVhsv(262, 69%, 72%)
CMYKcmyk(43.2%, 68.9%, 0%, 28.2%)
CIE-LABlab(36.53, 48.01, -59.23)
CIE-LCHlch(36.53, 76.24, 309.02°)
OKLaboklab(47.4% 0.0805 -0.1693)
OKLCHoklch(47.4% 0.187 295.4)
XYZxyz(15.7170, 9.2878, 45.7552)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839B7 #88B739
analogous
#3949B7 #6839B7 #A739B7
triadic
#6839B7 #B76839 #39B768
tetradic
#6839B7 #B73949 #88B739 #39B7A7
square
#6839B7 #B73949 #88B739 #39B7A7
split-complementary
#6839B7 #B7A739 #49B739
monochromatic
#331C5A #4D2A88 #6839B7 #8960CD #AB8EDC

Accessibility & contrast

On white

7.35
#6839B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6839B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839B7
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839B7#FFFFFF#000000##FFFFFF
##6839B71.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#535873
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6839b7;
/* rgb */ color: rgb(104, 57, 183);
/* oklch */ color: oklch(47.4% 0.187 295.4);
Tailwind
colors: {
  custom: {
    50: '#9a73cd',
    500: '#6839b7',
    950: '#000000',
  },
}
SCSS
$custom: #6839b7;
$custom-light: #9a73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6839b7",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 262.381,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47396,
    "c": 0.18749,
    "h": 295.4
  },
  "luminance": 0.09288
}

Semantic roles & 50–950 ramp

primary
#6839B7
secondary
#AEC785
accent
#DC4CA6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6839B7

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

Preview Lab → · Contrast checker → · Palette generator →

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