#6839BD#6839BD

#6839BD is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.9% C 0.194 H 294.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#6839BD
RGBrgb(104, 57, 189)
HSLhsl(261, 54%, 48%)
HSVhsv(261, 70%, 74%)
CMYKcmyk(45%, 69.8%, 0%, 25.9%)
CIE-LABlab(37.01, 49.61, -61.99)
CIE-LCHlch(37.01, 79.40, 308.67°)
OKLaboklab(47.89% 0.0795 -0.1774)
OKLCHoklch(47.89% 0.194 294.1)
XYZxyz(16.3549, 9.5430, 49.1145)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839BD #8EBD39
analogous
#394CBD #6839BD #AA39BD
triadic
#6839BD #BD6839 #39BD68
tetradic
#6839BD #BD394C #8EBD39 #39BDAA
square
#6839BD #BD394C #8EBD39 #39BDAA
split-complementary
#6839BD #BDAA39 #4CBD39
monochromatic
#341D5F #4E2B8E #6839BD #8A63D0 #AD92DE

Accessibility & contrast

On white

7.22
#6839BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6839BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839BD
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839BD#FFFFFF#000000##FFFFFF
##6839BD1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#505A77
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6839bd;
/* rgb */ color: rgb(104, 57, 189);
/* oklch */ color: oklch(47.9% 0.194 294.1);
Tailwind
colors: {
  custom: {
    50: '#9a73d2',
    500: '#6839bd',
    950: '#000000',
  },
}
SCSS
$custom: #6839bd;
$custom-light: #9a73d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6839bd",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 189
  },
  "hsl": {
    "h": 261.364,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47885,
    "c": 0.19442,
    "h": 294.1
  },
  "luminance": 0.09543
}

Semantic roles & 50–950 ramp

primary
#6839BD
secondary
#B2C989
accent
#DD4BA9
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6839BD

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

Preview Lab → · Contrast checker → · Palette generator →

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