#6839B8#6839B8

#6839B8 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.5% C 0.189 H 295.2°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#6839B8
RGBrgb(104, 57, 184)
HSLhsl(262, 53%, 47%)
HSVhsv(262, 69%, 72%)
CMYKcmyk(43.5%, 69%, 0%, 27.8%)
CIE-LABlab(36.61, 48.27, -59.69)
CIE-LCHlch(36.61, 76.77, 308.96°)
OKLaboklab(47.48% 0.0803 -0.1707)
OKLCHoklch(47.48% 0.189 295.2)
XYZxyz(15.8215, 9.3296, 46.3053)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839B8 #89B839
analogous
#3949B8 #6839B8 #A839B8
triadic
#6839B8 #B86839 #39B868
tetradic
#6839B8 #B83949 #89B839 #39B8A8
square
#6839B8 #B83949 #89B839 #39B8A8
split-complementary
#6839B8 #B8A839 #49B839
monochromatic
#331C5B #4E2B89 #6839B8 #8960CE #AC8FDC

Accessibility & contrast

On white

7.33
#6839B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6839B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839B8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839B8#FFFFFF#000000##FFFFFF
##6839B81.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#525874
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6839b8;
/* rgb */ color: rgb(104, 57, 184);
/* oklch */ color: oklch(47.5% 0.189 295.2);
Tailwind
colors: {
  custom: {
    50: '#9a73ce',
    500: '#6839b8',
    950: '#000000',
  },
}
SCSS
$custom: #6839b8;
$custom-light: #9a73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6839b8",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 262.205,
    "s": 52.697,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47477,
    "c": 0.18865,
    "h": 295.2
  },
  "luminance": 0.0933
}

Semantic roles & 50–950 ramp

primary
#6839B8
secondary
#AFC786
accent
#DC4CA7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6839B8

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

Preview Lab → · Contrast checker → · Palette generator →

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