#511F9F#511F9F
#511F9F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.188 H 293.6°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).
Color values
| HEX | #511F9F |
|---|---|
| RGB | rgb(81, 31, 159) |
| HSL | hsl(263, 67%, 37%) |
| HSV | hsv(263, 81%, 62%) |
| CMYK | cmyk(49.1%, 80.5%, 0%, 37.6%) |
| CIE-LAB | lab(27.39, 50.13, -59.90) |
| CIE-LCH | lch(27.39, 78.11, 309.92°) |
| OKLab | oklab(39.69% 0.075 -0.1719) |
| OKLCH | oklch(39.69% 0.188 293.6) |
| XYZ | xyz(10.1396, 5.2322, 33.2698) |
| Luminance | 0.0523 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.10
Violet Blue
#510AC9
ΔE00 5.61
Rebeccapurple
#663399
ΔE00 5.85
Indigo
#4B0082
ΔE00 5.94
Ultramarine
#2000B1
ΔE00 6.69
Indigo (survey)
#380282
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511F9F #6D9F1F
analogous
#1F2D9F #511F9F #911F9F
triadic
#511F9F #9F511F #1F9F51
tetradic
#511F9F #9F1F2D #6D9F1F #1F9F91
square
#511F9F #9F1F2D #6D9F1F #1F9F91
split-complementary
#511F9F #9F911F #2D9F1F
monochromatic
#1D0B39 #37156C #511F9F #6B29D2 #8E5ADF
Accessibility & contrast
On white
10.26
#511F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#511F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511F9F
10.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511F9F | 1.00 | 10.26 | 2.05 | 10.26 |
| #FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#39445F
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #511f9f; /* rgb */ color: rgb(81, 31, 159); /* oklch */ color: oklch(39.7% 0.188 293.6);
Tailwind
colors: {
custom: {
50: '#8a62bc',
500: '#511f9f',
950: '#000000',
},
}SCSS
$custom: #511f9f; $custom-light: #8a62bc; $custom-dark: #000000;
JSON
{
"hex": "#511f9f",
"rgb": {
"r": 81,
"g": 31,
"b": 159
},
"hsl": {
"h": 263.438,
"s": 67.368,
"l": 37.255
},
"oklch": {
"l": 0.39693,
"c": 0.18757,
"h": 293.6
},
"luminance": 0.05233
}Semantic roles & 50–950 ramp
primary
#511F9F
secondary
#99C357
accent
#EA3EA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81