#6A17A1#6A17A1

#6A17A1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.3% C 0.200 H 306.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#6A17A1
RGBrgb(106, 23, 161)
HSLhsl(276, 75%, 36%)
HSVhsv(276, 86%, 63%)
CMYKcmyk(34.2%, 85.7%, 0%, 36.9%)
CIE-LABlab(30.04, 57.07, -56.65)
CIE-LCHlch(30.04, 80.41, 315.21°)
OKLaboklab(42.32% 0.1178 -0.1614)
OKLCHoklch(42.32% 0.2 306.1)
XYZxyz(12.6818, 6.2503, 34.2496)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A17A1 #4EA117
analogous
#2517A1 #6A17A1 #A11793
triadic
#6A17A1 #A16A17 #17A16A
tetradic
#6A17A1 #A12517 #4EA117 #1793A1
square
#6A17A1 #A12517 #4EA117 #1793A1
split-complementary
#6A17A1 #93A117 #17A125
monochromatic
#230836 #470F6B #6A17A1 #8D1FD7 #A94DE6

Accessibility & contrast

On white

9.33
#6A17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6A17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A17A1
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A17A1#FFFFFF#000000##FFFFFF
##6A17A11.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A5
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#603F5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a17a1;
/* rgb */ color: rgb(106, 23, 161);
/* oklch */ color: oklch(42.3% 0.200 306.1);
Tailwind
colors: {
  custom: {
    50: '#9b62be',
    500: '#6a17a1',
    950: '#000000',
  },
}
SCSS
$custom: #6a17a1;
$custom-light: #9b62be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a17a1",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 276.087,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42319,
    "c": 0.19988,
    "h": 306.1
  },
  "luminance": 0.0625
}

Semantic roles & 50–950 ramp

primary
#6A17A1
secondary
#7DC74C
accent
#F23681
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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