#6C17A0#6C17A0
#6C17A0 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.5% C 0.199 H 307.4°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).
Color values
| HEX | #6C17A0 |
|---|---|
| RGB | rgb(108, 23, 160) |
| HSL | hsl(277, 75%, 36%) |
| HSV | hsv(277, 86%, 63%) |
| CMYK | cmyk(32.5%, 85.6%, 0%, 37.3%) |
| CIE-LAB | lab(30.25, 57.15, -55.67) |
| CIE-LCH | lch(30.25, 79.79, 315.75°) |
| OKLab | oklab(42.51% 0.121 -0.1585) |
| OKLCH | oklch(42.51% 0.199 307.4) |
| XYZ | xyz(12.8345, 6.3392, 33.7983) |
| Luminance | 0.0634 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.03
Rebeccapurple
#663399
ΔE00 4.74
Violet Blue
#510AC9
ΔE00 7.22
Indigo
#4B0082
ΔE00 7.35
Purple Blue
#5D21D0
ΔE00 7.54
Purple
#800080
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6C17A0 #4BA017
analogous
#2717A0 #6C17A0 #A0178F
triadic
#6C17A0 #A06C17 #17A06C
tetradic
#6C17A0 #A02717 #4BA017 #178FA0
square
#6C17A0 #A02717 #4BA017 #178FA0
split-complementary
#6C17A0 #8FA017 #17A027
monochromatic
#240835 #480F6A #6C17A0 #901FD6 #AB4CE5
Accessibility & contrast
On white
9.26
#6C17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#6C17A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6C17A0
9.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6C17A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6C17A0 | 1.00 | 9.26 | 2.27 | 9.26 |
| #FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#633E5F
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #6c17a0; /* rgb */ color: rgb(108, 23, 160); /* oklch */ color: oklch(42.5% 0.199 307.4);
Tailwind
colors: {
custom: {
50: '#9c62bd',
500: '#6c17a0',
950: '#000000',
},
}SCSS
$custom: #6c17a0; $custom-light: #9c62bd; $custom-dark: #000000;
JSON
{
"hex": "#6c17a0",
"rgb": {
"r": 108,
"g": 23,
"b": 160
},
"hsl": {
"h": 277.226,
"s": 74.863,
"l": 35.882
},
"oklch": {
"l": 0.42505,
"c": 0.19945,
"h": 307.4
},
"luminance": 0.06339
}Semantic roles & 50–950 ramp
primary
#6C17A0
secondary
#7BC74C
accent
#F1367D
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81