#6A34A4#6A34A4

#6A34A4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.172 H 302.0°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#6A34A4
RGBrgb(106, 52, 164)
HSLhsl(269, 52%, 42%)
HSVhsv(269, 68%, 64%)
CMYKcmyk(35.4%, 68.3%, 0%, 35.7%)
CIE-LABlab(34.40, 46.02, -51.36)
CIE-LCHlch(34.40, 68.96, 311.86°)
OKLaboklab(45.47% 0.0914 -0.1461)
OKLCHoklch(45.47% 0.172 302)
XYZxyz(13.8711, 8.2004, 35.9668)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34A4 #6EA434
analogous
#3436A4 #6A34A4 #A234A4
triadic
#6A34A4 #A46A34 #34A46A
tetradic
#6A34A4 #A43436 #6EA434 #34A4A2
square
#6A34A4 #A43436 #6EA434 #34A4A2
split-complementary
#6A34A4 #A4A234 #36A434
monochromatic
#2E1747 #4C2576 #6A34A4 #884EC7 #A87DD6

Accessibility & contrast

On white

7.95
#6A34A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6A34A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34A4
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34A4#FFFFFF#000000##FFFFFF
##6A34A41.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0050A2
Tritanopia (blue-blind)
#5E4E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a34a4;
/* rgb */ color: rgb(106, 52, 164);
/* oklch */ color: oklch(45.5% 0.172 302.0);
Tailwind
colors: {
  custom: {
    50: '#996fc0',
    500: '#6a34a4',
    950: '#000000',
  },
}
SCSS
$custom: #6a34a4;
$custom-light: #996fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34a4",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 268.929,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45466,
    "c": 0.17236,
    "h": 302
  },
  "luminance": 0.082
}

Semantic roles & 50–950 ramp

primary
#6A34A4
secondary
#9BBF75
accent
#DB4C96
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6A34A4

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

Preview Lab → · Contrast checker → · Palette generator →

#6A34A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva