#6A34A5#6A34A5

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

Color values

HEX#6A34A5
RGBrgb(106, 52, 165)
HSLhsl(269, 52%, 43%)
HSVhsv(269, 68%, 65%)
CMYKcmyk(35.8%, 68.5%, 0%, 35.3%)
CIE-LABlab(34.47, 46.27, -51.84)
CIE-LCHlch(34.47, 69.49, 311.75°)
OKLaboklab(45.54% 0.0913 -0.1475)
OKLCHoklch(45.54% 0.173 301.7)
XYZxyz(13.9618, 8.2367, 36.4443)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34A5 #6FA534
analogous
#3436A5 #6A34A5 #A334A5
triadic
#6A34A5 #A56A34 #34A56A
tetradic
#6A34A5 #A53436 #6FA534 #34A5A3
square
#6A34A5 #A53436 #6FA534 #34A5A3
split-complementary
#6A34A5 #A5A334 #36A534
monochromatic
#2E1748 #4C2576 #6A34A5 #884FC7 #A87DD6

Accessibility & contrast

On white

7.93
#6A34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6A34A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34A5
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34A5#FFFFFF#000000##FFFFFF
##6A34A51.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#5E4E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a34a5;
/* rgb */ color: rgb(106, 52, 165);
/* oklch */ color: oklch(45.5% 0.173 301.7);
Tailwind
colors: {
  custom: {
    50: '#996fc0',
    500: '#6a34a5',
    950: '#000000',
  },
}
SCSS
$custom: #6a34a5;
$custom-light: #996fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34a5",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 268.673,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45542,
    "c": 0.17349,
    "h": 301.7
  },
  "luminance": 0.08237
}

Semantic roles & 50–950 ramp

primary
#6A34A5
secondary
#9CBF76
accent
#DC4C97
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6A34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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