#6C17A1#6C17A1
#6C17A1 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.6% C 0.200 H 307.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).
Color values
| HEX | #6C17A1 |
|---|---|
| RGB | rgb(108, 23, 161) |
| HSL | hsl(277, 75%, 36%) |
| HSV | hsv(277, 86%, 63%) |
| CMYK | cmyk(32.9%, 85.7%, 0%, 36.9%) |
| CIE-LAB | lab(30.34, 57.37, -56.14) |
| CIE-LCH | lch(30.34, 80.27, 315.62°) |
| OKLab | oklab(42.59% 0.1207 -0.1599) |
| OKLCH | oklch(42.59% 0.2 307.1) |
| XYZ | xyz(12.9224, 6.3743, 34.2609) |
| Luminance | 0.0637 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.09
Rebeccapurple
#663399
ΔE00 4.76
Violet Blue
#510AC9
ΔE00 7.08
Purple Blue
#5D21D0
ΔE00 7.39
Indigo
#4B0082
ΔE00 7.42
Purple
#800080
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6C17A1 #4CA117
analogous
#2717A1 #6C17A1 #A11791
triadic
#6C17A1 #A16C17 #17A16C
tetradic
#6C17A1 #A12717 #4CA117 #1791A1
square
#6C17A1 #A12717 #4CA117 #1791A1
split-complementary
#6C17A1 #91A117 #17A127
monochromatic
#240836 #480F6B #6C17A1 #901FD7 #AB4DE6
Accessibility & contrast
On white
9.23
#6C17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#6C17A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6C17A1
9.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6C17A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6C17A1 | 1.00 | 9.23 | 2.27 | 9.23 |
| #FFFFFF | 9.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#633E5F
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #6c17a1; /* rgb */ color: rgb(108, 23, 161); /* oklch */ color: oklch(42.6% 0.200 307.1);
Tailwind
colors: {
custom: {
50: '#9c62be',
500: '#6c17a1',
950: '#000000',
},
}SCSS
$custom: #6c17a1; $custom-light: #9c62be; $custom-dark: #000000;
JSON
{
"hex": "#6c17a1",
"rgb": {
"r": 108,
"g": 23,
"b": 161
},
"hsl": {
"h": 276.957,
"s": 75,
"l": 36.078
},
"oklch": {
"l": 0.4259,
"c": 0.20035,
"h": 307.1
},
"luminance": 0.06374
}Semantic roles & 50–950 ramp
primary
#6C17A1
secondary
#7CC74C
accent
#F2367E
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81