#6A17A0#6A17A0

#6A17A0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.2% C 0.199 H 306.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#6A17A0
RGBrgb(106, 23, 160)
HSLhsl(276, 75%, 36%)
HSVhsv(276, 86%, 63%)
CMYKcmyk(33.7%, 85.6%, 0%, 37.3%)
CIE-LABlab(29.95, 56.85, -56.18)
CIE-LCHlch(29.95, 79.92, 315.34°)
OKLaboklab(42.23% 0.1182 -0.1601)
OKLCHoklch(42.23% 0.199 306.4)
XYZxyz(12.5940, 6.2152, 33.7871)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A17A0 #4DA017
analogous
#2517A0 #6A17A0 #A01791
triadic
#6A17A0 #A06A17 #17A06A
tetradic
#6A17A0 #A02517 #4DA017 #1791A0
square
#6A17A0 #A02517 #4DA017 #1791A0
split-complementary
#6A17A0 #91A017 #17A025
monochromatic
#230835 #470F6A #6A17A0 #8D1FD6 #A94CE5

Accessibility & contrast

On white

9.36
#6A17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6A17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A17A0
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A17A0#FFFFFF#000000##FFFFFF
##6A17A01.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#603E5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a17a0;
/* rgb */ color: rgb(106, 23, 160);
/* oklch */ color: oklch(42.2% 0.199 306.4);
Tailwind
colors: {
  custom: {
    50: '#9b61bd',
    500: '#6a17a0',
    950: '#000000',
  },
}
SCSS
$custom: #6a17a0;
$custom-light: #9b61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#6a17a0",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 276.35,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42233,
    "c": 0.19897,
    "h": 306.4
  },
  "luminance": 0.06215
}

Semantic roles & 50–950 ramp

primary
#6A17A0
secondary
#7CC74C
accent
#F13680
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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