#6A179E#6A179E
#6A179E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 42.1% C 0.197 H 307.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #6A179E |
|---|---|
| RGB | rgb(106, 23, 158) |
| HSL | hsl(277, 75%, 35%) |
| HSV | hsv(277, 85%, 62%) |
| CMYK | cmyk(32.9%, 85.4%, 0%, 38%) |
| CIE-LAB | lab(29.78, 56.41, -55.24) |
| CIE-LCH | lch(29.78, 78.96, 315.60°) |
| OKLab | oklab(42.06% 0.1188 -0.1573) |
| OKLCH | oklch(42.06% 0.197 307.1) |
| XYZ | xyz(12.4205, 6.1457, 32.8730) |
| Luminance | 0.0615 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.29
Rebeccapurple
#663399
ΔE00 4.74
Indigo
#4B0082
ΔE00 6.95
Violet Blue
#510AC9
ΔE00 7.26
Purple Blue
#5D21D0
ΔE00 7.71
Purple
#800080
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A179E #4B9E17
analogous
#26179E #6A179E #9E178E
triadic
#6A179E #9E6A17 #179E6A
tetradic
#6A179E #9E2617 #4B9E17 #178E9E
square
#6A179E #9E2617 #4B9E17 #178E9E
split-complementary
#6A179E #8E9E17 #179E26
monochromatic
#220733 #460F69 #6A179E #8E1FD3 #A94BE5
Accessibility & contrast
On white
9.42
#6A179E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#6A179E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6A179E
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A179E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A179E | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#613D5D
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #6a179e; /* rgb */ color: rgb(106, 23, 158); /* oklch */ color: oklch(42.1% 0.197 307.1);
Tailwind
colors: {
custom: {
50: '#9a61bc',
500: '#6a179e',
950: '#000000',
},
}SCSS
$custom: #6a179e; $custom-light: #9a61bc; $custom-dark: #000000;
JSON
{
"hex": "#6a179e",
"rgb": {
"r": 106,
"g": 23,
"b": 158
},
"hsl": {
"h": 276.889,
"s": 74.586,
"l": 35.49
},
"oklch": {
"l": 0.42061,
"c": 0.19715,
"h": 307.1
},
"luminance": 0.06146
}Semantic roles & 50–950 ramp
primary
#6A179E
secondary
#7AC64A
accent
#F1377E
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81