#6A3FA6#6A3FA6

#6A3FA6 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.2% C 0.159 H 299.5°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#6A3FA6
RGBrgb(106, 63, 166)
HSLhsl(265, 45%, 45%)
HSVhsv(265, 62%, 65%)
CMYKcmyk(36.1%, 62%, 0%, 34.9%)
CIE-LABlab(36.69, 40.68, -48.85)
CIE-LCHlch(36.69, 63.57, 309.78°)
OKLaboklab(47.17% 0.0784 -0.1388)
OKLCHoklch(47.17% 0.159 299.5)
XYZxyz(14.6026, 9.3722, 37.1087)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A3FA6 #7BA63F
analogous
#3F47A6 #6A3FA6 #9E3FA6
triadic
#6A3FA6 #A66A3F #3FA66A
tetradic
#6A3FA6 #A63F47 #7BA63F #3FA69E
square
#6A3FA6 #A63F47 #7BA63F #3FA69E
split-complementary
#6A3FA6 #A69E3F #47A63F
monochromatic
#311D4D #4E2E7A #6A3FA6 #8960C3 #AA8CD3

Accessibility & contrast

On white

7.31
#6A3FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6A3FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A3FA6
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A3FA6#FFFFFF#000000##FFFFFF
##6A3FA61.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#1755A4
Tritanopia (blue-blind)
#5D556C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6a3fa6;
/* rgb */ color: rgb(106, 63, 166);
/* oklch */ color: oklch(47.2% 0.159 299.5);
Tailwind
colors: {
  custom: {
    50: '#9976c1',
    500: '#6a3fa6',
    950: '#000000',
  },
}
SCSS
$custom: #6a3fa6;
$custom-light: #9976c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a3fa6",
  "rgb": {
    "r": 106,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 265.049,
    "s": 44.978,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47168,
    "c": 0.15939,
    "h": 299.5
  },
  "luminance": 0.09372
}

Semantic roles & 50–950 ramp

primary
#6A3FA6
secondary
#A5BE83
accent
#D5539F
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6A3FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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