#541F9E#541F9E
#541F9E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.187 H 295.4°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).
Color values
| HEX | #541F9E |
|---|---|
| RGB | rgb(84, 31, 158) |
| HSL | hsl(265, 67%, 37%) |
| HSV | hsv(265, 80%, 62%) |
| CMYK | cmyk(46.8%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(27.66, 50.30, -58.83) |
| CIE-LCH | lch(27.66, 77.40, 310.53°) |
| OKLab | oklab(39.94% 0.08 -0.1687) |
| OKLCH | oklch(39.94% 0.187 295.4) |
| XYZ | xyz(10.3160, 5.3331, 32.8270) |
| Luminance | 0.0533 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.60
Rebeccapurple
#663399
ΔE00 5.45
Violet Blue
#510AC9
ΔE00 5.81
Indigo
#4B0082
ΔE00 5.86
Indigo (survey)
#380282
ΔE00 6.97
Purple Blue
#5D21D0
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#541F9E #699E1F
analogous
#1F2A9E #541F9E #941F9E
triadic
#541F9E #9E541F #1F9E54
tetradic
#541F9E #9E1F2A #699E1F #1F9E94
square
#541F9E #9E1F2A #699E1F #1F9E94
split-complementary
#541F9E #9E941F #2A9E1F
monochromatic
#1E0B38 #39156B #541F9E #6F29D1 #9159DE
Accessibility & contrast
On white
10.16
#541F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#541F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #541F9E
10.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##541F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##541F9E | 1.00 | 10.16 | 2.07 | 10.16 |
| #FFFFFF | 10.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#3F435F
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #541f9e; /* rgb */ color: rgb(84, 31, 158); /* oklch */ color: oklch(39.9% 0.187 295.4);
Tailwind
colors: {
custom: {
50: '#8c62bc',
500: '#541f9e',
950: '#000000',
},
}SCSS
$custom: #541f9e; $custom-light: #8c62bc; $custom-dark: #000000;
JSON
{
"hex": "#541f9e",
"rgb": {
"r": 84,
"g": 31,
"b": 158
},
"hsl": {
"h": 265.039,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.3994,
"c": 0.18667,
"h": 295.4
},
"luminance": 0.05333
}Semantic roles & 50–950 ramp
primary
#541F9E
secondary
#95C256
accent
#EA3EA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81