#6A3A9D#6A3A9D

#6A3A9D is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.156 H 303.1°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#6A3A9D
RGBrgb(106, 58, 157)
HSLhsl(269, 46%, 42%)
HSVhsv(269, 63%, 62%)
CMYKcmyk(32.5%, 63.1%, 0%, 38.4%)
CIE-LABlab(35.05, 41.09, -46.08)
CIE-LCHlch(35.05, 61.74, 311.72°)
OKLaboklab(45.78% 0.085 -0.1306)
OKLCHoklch(45.78% 0.156 303.1)
XYZxyz(13.5413, 8.5246, 32.8238)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A3A9D #6D9D3A
analogous
#3A3B9D #6A3A9D #9C3A9D
triadic
#6A3A9D #9D6A3A #3A9D6A
tetradic
#6A3A9D #9D3A3B #6D9D3A #3A9D9C
square
#6A3A9D #9D3A3B #6D9D3A #3A9D9C
split-complementary
#6A3A9D #9D9C3A #3B9D3A
monochromatic
#2E1944 #4C2970 #6A3A9D #8854C0 #A781D0

Accessibility & contrast

On white

7.76
#6A3A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6A3A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A3A9D
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A3A9D#FFFFFF#000000##FFFFFF
##6A3A9D1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#1D529B
Tritanopia (blue-blind)
#604F66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a3a9d;
/* rgb */ color: rgb(106, 58, 157);
/* oklch */ color: oklch(45.8% 0.156 303.1);
Tailwind
colors: {
  custom: {
    50: '#9873ba',
    500: '#6a3a9d',
    950: '#000000',
  },
}
SCSS
$custom: #6a3a9d;
$custom-light: #9873ba;
$custom-dark: #000000;
JSON
{
  "hex": "#6a3a9d",
  "rgb": {
    "r": 106,
    "g": 58,
    "b": 157
  },
  "hsl": {
    "h": 269.091,
    "s": 46.047,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45781,
    "c": 0.15584,
    "h": 303.1
  },
  "luminance": 0.08525
}

Semantic roles & 50–950 ramp

primary
#6A3A9D
secondary
#9ABA79
accent
#D65296
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6A3A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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