#6A1F9D#6A1F9D
#6A1F9D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.189 H 306.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).
Color values
| HEX | #6A1F9D |
|---|---|
| RGB | rgb(106, 31, 157) |
| HSL | hsl(276, 67%, 37%) |
| HSV | hsv(276, 80%, 62%) |
| CMYK | cmyk(32.5%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(30.59, 53.58, -53.31) |
| CIE-LCH | lch(30.59, 75.58, 315.14°) |
| OKLab | oklab(42.6% 0.1133 -0.1517) |
| OKLCH | oklch(42.6% 0.189 306.7) |
| XYZ | xyz(12.5183, 6.4786, 32.4828) |
| Luminance | 0.0648 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.75
Purple (survey)
#7E1E9C
ΔE00 3.95
Indigo
#4B0082
ΔE00 7.47
Violet Blue
#510AC9
ΔE00 7.62
Purple Blue
#5D21D0
ΔE00 7.72
Purple
#800080
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A1F9D #529D1F
analogous
#2B1F9D #6A1F9D #9D1F91
triadic
#6A1F9D #9D6A1F #1F9D6A
tetradic
#6A1F9D #9D2B1F #529D1F #1F919D
square
#6A1F9D #9D2B1F #529D1F #1F919D
split-complementary
#6A1F9D #919D1F #1F9D2B
monochromatic
#250B37 #47156A #6A1F9D #8D29D0 #A858DE
Accessibility & contrast
On white
9.15
#6A1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#6A1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6A1F9D
9.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A1F9D | 1.00 | 9.15 | 2.30 | 9.15 |
| #FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#61405E
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #6a1f9d; /* rgb */ color: rgb(106, 31, 157); /* oklch */ color: oklch(42.6% 0.189 306.7);
Tailwind
colors: {
custom: {
50: '#9a64bb',
500: '#6a1f9d',
950: '#000000',
},
}SCSS
$custom: #6a1f9d; $custom-light: #9a64bb; $custom-dark: #000000;
JSON
{
"hex": "#6a1f9d",
"rgb": {
"r": 106,
"g": 31,
"b": 157
},
"hsl": {
"h": 275.714,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.426,
"c": 0.18932,
"h": 306.7
},
"luminance": 0.06478
}Semantic roles & 50–950 ramp
primary
#6A1F9D
secondary
#82C256
accent
#EA3E84
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81