#511FA7#511FA7
#511FA7 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.196 H 291.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #511FA7 |
|---|---|
| RGB | rgb(81, 31, 167) |
| HSL | hsl(262, 69%, 39%) |
| HSV | hsv(262, 81%, 65%) |
| CMYK | cmyk(51.5%, 81.4%, 0%, 34.5%) |
| CIE-LAB | lab(28.16, 52.23, -63.48) |
| CIE-LCH | lch(28.16, 82.20, 309.45°) |
| OKLab | oklab(40.47% 0.0723 -0.1824) |
| OKLCH | oklch(40.47% 0.196 291.6) |
| XYZ | xyz(10.8564, 5.5189, 37.0449) |
| Luminance | 0.0552 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.44
Violet Blue
#510AC9
ΔE00 4.52
Purple Blue
#5D21D0
ΔE00 5.82
Rebeccapurple
#663399
ΔE00 6.21
Ultramarine
#2000B1
ΔE00 6.34
Indigo
#4B0082
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#511FA7 #75A71F
analogous
#1F31A7 #511FA7 #951FA7
triadic
#511FA7 #A7511F #1FA751
tetradic
#511FA7 #A71F31 #75A71F #1FA795
square
#511FA7 #A71F31 #75A71F #1FA795
split-complementary
#511FA7 #A7951F #31A71F
monochromatic
#1F0C40 #381573 #511FA7 #6B2BD8 #8F5FE1
Accessibility & contrast
On white
9.98
#511FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#511FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #511FA7
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##511FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##511FA7 | 1.00 | 9.98 | 2.10 | 9.98 |
| #FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#334764
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #511fa7; /* rgb */ color: rgb(81, 31, 167); /* oklch */ color: oklch(40.5% 0.196 291.6);
Tailwind
colors: {
custom: {
50: '#8c62c2',
500: '#511fa7',
950: '#000000',
},
}SCSS
$custom: #511fa7; $custom-light: #8c62c2; $custom-dark: #000000;
JSON
{
"hex": "#511fa7",
"rgb": {
"r": 81,
"g": 31,
"b": 167
},
"hsl": {
"h": 262.059,
"s": 68.687,
"l": 38.824
},
"oklch": {
"l": 0.40468,
"c": 0.1962,
"h": 291.6
},
"luminance": 0.05519
}Semantic roles & 50–950 ramp
primary
#511FA7
secondary
#9FC65C
accent
#EC3CAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82