#502F92#502F92
#502F92 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.154 H 293.6°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #502F92 |
|---|---|
| RGB | rgb(80, 47, 146) |
| HSL | hsl(260, 51%, 38%) |
| HSV | hsv(260, 68%, 57%) |
| CMYK | cmyk(45.2%, 67.8%, 0%, 42.7%) |
| CIE-LAB | lab(28.94, 38.44, -49.42) |
| CIE-LCH | lch(28.94, 62.61, 307.88°) |
| OKLab | oklab(40.41% 0.0618 -0.1413) |
| OKLCH | oklch(40.41% 0.154 293.6) |
| XYZ | xyz(9.5117, 5.8136, 27.8095) |
| Luminance | 0.0581 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.24
Darkslateblue
#483D8B
ΔE00 4.99
Blueberry
#464196
ΔE00 6.05
Indigo Blue
#3A18B1
ΔE00 7.04
Ocean Blue
#4F42B5
ΔE00 7.31
Indigo
#4B0082
ΔE00 7.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#502F92 #71922F
analogous
#2F3F92 #502F92 #812F92
triadic
#502F92 #92502F #2F9250
tetradic
#502F92 #922F3F #71922F #2F9281
square
#502F92 #922F3F #71922F #2F9281
split-complementary
#502F92 #92812F #3F922F
monochromatic
#1D1135 #372064 #502F92 #693EC0 #8D6CD0
Accessibility & contrast
On white
9.71
#502F92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#502F92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #502F92
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##502F92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##502F92 | 1.00 | 9.71 | 2.16 | 9.71 |
| #FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#3D475C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #502f92; /* rgb */ color: rgb(80, 47, 146); /* oklch */ color: oklch(40.4% 0.154 293.6);
Tailwind
colors: {
custom: {
50: '#876ab3',
500: '#502f92',
950: '#000000',
},
}SCSS
$custom: #502f92; $custom-light: #876ab3; $custom-dark: #000000;
JSON
{
"hex": "#502f92",
"rgb": {
"r": 80,
"g": 47,
"b": 146
},
"hsl": {
"h": 260,
"s": 51.295,
"l": 37.843
},
"oklch": {
"l": 0.4041,
"c": 0.15424,
"h": 293.6
},
"luminance": 0.05814
}Semantic roles & 50–950 ramp
primary
#502F92
secondary
#9CB766
accent
#DB4DAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80