#6A34A2#6A34A2

#6A34A2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.170 H 302.6°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#6A34A2
RGBrgb(106, 52, 162)
HSLhsl(269, 51%, 42%)
HSVhsv(269, 68%, 64%)
CMYKcmyk(34.6%, 67.9%, 0%, 36.5%)
CIE-LABlab(34.25, 45.51, -50.40)
CIE-LCHlch(34.25, 67.91, 312.09°)
OKLaboklab(45.31% 0.0917 -0.1433)
OKLCHoklch(45.31% 0.17 302.6)
XYZxyz(13.6919, 8.1288, 35.0231)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34A2 #6CA234
analogous
#3435A2 #6A34A2 #A134A2
triadic
#6A34A2 #A26A34 #34A26A
tetradic
#6A34A2 #A23435 #6CA234 #34A2A1
square
#6A34A2 #A23435 #6CA234 #34A2A1
split-complementary
#6A34A2 #A2A134 #35A234
monochromatic
#2D1645 #4C2574 #6A34A2 #894DC6 #A77CD5

Accessibility & contrast

On white

8.00
#6A34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6A34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34A2
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34A2#FFFFFF#000000##FFFFFF
##6A34A21.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#5F4D66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a34a2;
/* rgb */ color: rgb(106, 52, 162);
/* oklch */ color: oklch(45.3% 0.170 302.6);
Tailwind
colors: {
  custom: {
    50: '#996fbe',
    500: '#6a34a2',
    950: '#000000',
  },
}
SCSS
$custom: #6a34a2;
$custom-light: #996fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34a2",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 269.455,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45314,
    "c": 0.1701,
    "h": 302.6
  },
  "luminance": 0.08129
}

Semantic roles & 50–950 ramp

primary
#6A34A2
secondary
#9ABE74
accent
#DB4D95
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6A34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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