#6834AA#6834AA

#6834AA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.179 H 299.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#6834AA
RGBrgb(104, 52, 170)
HSLhsl(266, 53%, 44%)
HSVhsv(266, 69%, 67%)
CMYKcmyk(38.8%, 69.4%, 0%, 33.3%)
CIE-LABlab(34.60, 47.14, -54.64)
CIE-LCHlch(34.60, 72.16, 310.78°)
OKLaboklab(45.7% 0.0877 -0.1558)
OKLCHoklch(45.7% 0.179 299.4)
XYZxyz(14.1908, 8.3012, 38.8771)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834AA #76AA34
analogous
#343BAA #6834AA #A334AA
triadic
#6834AA #AA6834 #34AA68
tetradic
#6834AA #AA343B #76AA34 #34AAA3
square
#6834AA #AA343B #76AA34 #34AAA3
split-complementary
#6834AA #AAA334 #3BAA34
monochromatic
#2F174C #4B267B #6834AA #8651CA #A780D8

Accessibility & contrast

On white

7.89
#6834AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6834AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6834AA#FFFFFF#000000##FFFFFF
##6834AA1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#59506B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6834aa;
/* rgb */ color: rgb(104, 52, 170);
/* oklch */ color: oklch(45.7% 0.179 299.4);
Tailwind
colors: {
  custom: {
    50: '#996fc4',
    500: '#6834aa',
    950: '#000000',
  },
}
SCSS
$custom: #6834aa;
$custom-light: #996fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#6834aa",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 266.441,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45701,
    "c": 0.17882,
    "h": 299.4
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#6834AA
secondary
#A1C178
accent
#DD4B9D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6834AA

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

Preview Lab → · Contrast checker → · Palette generator →

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