#541F9C#541F9C
#541F9C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.185 H 295.9°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).
Color values
| HEX | #541F9C |
|---|---|
| RGB | rgb(84, 31, 156) |
| HSL | hsl(265, 67%, 37%) |
| HSV | hsv(265, 80%, 61%) |
| CMYK | cmyk(46.2%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(27.48, 49.78, -57.91) |
| CIE-LCH | lch(27.48, 76.37, 310.68°) |
| OKLab | oklab(39.75% 0.0806 -0.166) |
| OKLCH | oklch(39.75% 0.185 295.9) |
| XYZ | xyz(10.1453, 5.2648, 31.9277) |
| Luminance | 0.0527 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.81
Rebeccapurple
#663399
ΔE00 5.39
Indigo
#4B0082
ΔE00 5.65
Violet Blue
#510AC9
ΔE00 6.09
Indigo (survey)
#380282
ΔE00 6.82
Purple Blue
#5D21D0
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#541F9C #679C1F
analogous
#1F299C #541F9C #931F9C
triadic
#541F9C #9C541F #1F9C54
tetradic
#541F9C #9C1F29 #679C1F #1F9C93
square
#541F9C #9C1F29 #679C1F #1F9C93
split-complementary
#541F9C #9C931F #299C1F
monochromatic
#1D0B36 #391569 #541F9C #6F29CF #9158DE
Accessibility & contrast
On white
10.23
#541F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#541F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #541F9C
10.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##541F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##541F9C | 1.00 | 10.23 | 2.05 | 10.23 |
| #FFFFFF | 10.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#40425E
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #541f9c; /* rgb */ color: rgb(84, 31, 156); /* oklch */ color: oklch(39.8% 0.185 295.9);
Tailwind
colors: {
custom: {
50: '#8c62ba',
500: '#541f9c',
950: '#000000',
},
}SCSS
$custom: #541f9c; $custom-light: #8c62ba; $custom-dark: #000000;
JSON
{
"hex": "#541f9c",
"rgb": {
"r": 84,
"g": 31,
"b": 156
},
"hsl": {
"h": 265.44,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.39753,
"c": 0.18454,
"h": 295.9
},
"luminance": 0.05265
}Semantic roles & 50–950 ramp
primary
#541F9C
secondary
#94C155
accent
#EA3EA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81