#6834BA#6834BA

#6834BA is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.197 H 295.5°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#6834BA
RGBrgb(104, 52, 186)
HSLhsl(263, 56%, 47%)
HSVhsv(263, 72%, 73%)
CMYKcmyk(44.1%, 72%, 0%, 27.1%)
CIE-LABlab(35.88, 51.30, -62.07)
CIE-LCHlch(35.88, 80.53, 309.58°)
OKLaboklab(47% 0.0848 -0.1777)
OKLCHoklch(47% 0.197 295.5)
XYZxyz(15.7975, 8.9438, 47.3389)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834BA #86BA34
analogous
#3443BA #6834BA #AB34BA
triadic
#6834BA #BA6834 #34BA68
tetradic
#6834BA #BA3443 #86BA34 #34BAAB
square
#6834BA #BA3443 #86BA34 #34BAAB
split-complementary
#6834BA #BAAB34 #43BA34
monochromatic
#33195A #4D278A #6834BA #885AD1 #AB8ADE

Accessibility & contrast

On white

7.53
#6834BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6834BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6834BA
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6834BA#FFFFFF#000000##FFFFFF
##6834BA1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#525674
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6834ba;
/* rgb */ color: rgb(104, 52, 186);
/* oklch */ color: oklch(47.0% 0.197 295.5);
Tailwind
colors: {
  custom: {
    50: '#9a70d0',
    500: '#6834ba',
    950: '#000000',
  },
}
SCSS
$custom: #6834ba;
$custom-light: #9a70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6834ba",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 263.284,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47004,
    "c": 0.19686,
    "h": 295.5
  },
  "luminance": 0.08944
}

Semantic roles & 50–950 ramp

primary
#6834BA
secondary
#ADC881
accent
#E048A5
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6834BA

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

Preview Lab → · Contrast checker → · Palette generator →

#6834BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva