#6834A2#6834A2

#6834A2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.170 H 301.6°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#6834A2
RGBrgb(104, 52, 162)
HSLhsl(268, 51%, 42%)
HSVhsv(268, 68%, 64%)
CMYKcmyk(35.8%, 67.9%, 0%, 36.5%)
CIE-LABlab(34.00, 45.09, -50.81)
CIE-LCHlch(34.00, 67.93, 311.58°)
OKLaboklab(45.08% 0.0888 -0.1446)
OKLCHoklch(45.08% 0.17 301.6)
XYZxyz(13.4569, 8.0076, 35.0121)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834A2 #6EA234
analogous
#3437A2 #6834A2 #9F34A2
triadic
#6834A2 #A26834 #34A268
tetradic
#6834A2 #A23437 #6EA234 #34A29F
square
#6834A2 #A23437 #6EA234 #34A29F
split-complementary
#6834A2 #A29F34 #37A234
monochromatic
#2D1645 #4A2574 #6834A2 #864DC6 #A67CD5

Accessibility & contrast

On white

8.07
#6834A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6834A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6834A2#FFFFFF#000000##FFFFFF
##6834A21.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#5C4D66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6834a2;
/* rgb */ color: rgb(104, 52, 162);
/* oklch */ color: oklch(45.1% 0.170 301.6);
Tailwind
colors: {
  custom: {
    50: '#986fbe',
    500: '#6834a2',
    950: '#000000',
  },
}
SCSS
$custom: #6834a2;
$custom-light: #986fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6834a2",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 268.364,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45078,
    "c": 0.16969,
    "h": 301.6
  },
  "luminance": 0.08008
}

Semantic roles & 50–950 ramp

primary
#6834A2
secondary
#9BBE74
accent
#DB4D98
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6834A2

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

Preview Lab → · Contrast checker → · Palette generator →

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