#6834AD#6834AD

#6834AD is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.182 H 298.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#6834AD
RGBrgb(104, 52, 173)
HSLhsl(266, 54%, 44%)
HSVhsv(266, 70%, 68%)
CMYKcmyk(39.9%, 69.9%, 0%, 32.2%)
CIE-LABlab(34.83, 47.91, -56.06)
CIE-LCHlch(34.83, 73.74, 310.52°)
OKLaboklab(45.94% 0.0872 -0.16)
OKLCHoklch(45.94% 0.182 298.6)
XYZxyz(14.4778, 8.4160, 40.3887)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6834AD #79AD34
analogous
#343DAD #6834AD #A534AD
triadic
#6834AD #AD6834 #34AD68
tetradic
#6834AD #AD343D #79AD34 #34ADA5
square
#6834AD #AD343D #79AD34 #34ADA5
split-complementary
#6834AD #ADA534 #3DAD34
monochromatic
#2F184F #4C267E #6834AD #8753CB #A882D9

Accessibility & contrast

On white

7.83
#6834AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6834AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6834AD#FFFFFF#000000##FFFFFF
##6834AD1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#58516C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6834ad;
/* rgb */ color: rgb(104, 52, 173);
/* oklch */ color: oklch(45.9% 0.182 298.6);
Tailwind
colors: {
  custom: {
    50: '#9970c6',
    500: '#6834ad',
    950: '#000000',
  },
}
SCSS
$custom: #6834ad;
$custom-light: #9970c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6834ad",
  "rgb": {
    "r": 104,
    "g": 52,
    "b": 173
  },
  "hsl": {
    "h": 265.785,
    "s": 53.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45939,
    "c": 0.18222,
    "h": 298.6
  },
  "luminance": 0.08416
}

Semantic roles & 50–950 ramp

primary
#6834AD
secondary
#A4C37A
accent
#DD4B9E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6834AD

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

Preview Lab → · Contrast checker → · Palette generator →

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