#504282#504282
#504282 is a dark, moderate violet. Relative luminance 0.072; OKLCH L 42.5% C 0.104 H 291.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).
Color values
| HEX | #504282 |
|---|---|
| RGB | rgb(80, 66, 130) |
| HSL | hsl(253, 33%, 38%) |
| HSV | hsv(253, 49%, 51%) |
| CMYK | cmyk(38.5%, 49.2%, 0%, 49%) |
| CIE-LAB | lab(32.29, 22.14, -34.14) |
| CIE-LCH | lch(32.29, 40.69, 302.96°) |
| OKLab | oklab(42.52% 0.0378 -0.0964) |
| OKLCH | oklch(42.52% 0.104 291.4) |
| XYZ | xyz(9.2847, 7.2134, 22.0179) |
| Luminance | 0.0721 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.40
Blueberry
#464196
ΔE00 4.99
Twilight
#4E518B
ΔE00 5.64
Dusk
#4E5481
ΔE00 7.23
Rebeccapurple
#663399
ΔE00 8.00
Ocean Blue
#4F42B5
ΔE00 9.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#504282 #748242
analogous
#425482 #504282 #704282
triadic
#504282 #825042 #428250
tetradic
#504282 #824254 #748242 #428270
square
#504282 #824254 #748242 #428270
split-complementary
#504282 #827042 #548242
monochromatic
#1E1931 #372D59 #504282 #6957AA #8E80BE
Accessibility & contrast
On white
8.60
#504282 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#504282 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #504282
8.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##504282 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##504282 | 1.00 | 8.60 | 2.44 | 8.60 |
| #FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B4D84
Deuteranopia (green-blind)
#2C4B80
Tritanopia (blue-blind)
#434F5C
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #504282; /* rgb */ color: rgb(80, 66, 130); /* oklch */ color: oklch(42.5% 0.104 291.4);
Tailwind
colors: {
custom: {
50: '#8476a7',
500: '#504282',
950: '#000000',
},
}SCSS
$custom: #504282; $custom-light: #8476a7; $custom-dark: #000000;
JSON
{
"hex": "#504282",
"rgb": {
"r": 80,
"g": 66,
"b": 130
},
"hsl": {
"h": 253.125,
"s": 32.653,
"l": 38.431
},
"oklch": {
"l": 0.42521,
"c": 0.10356,
"h": 291.4
},
"luminance": 0.07214
}Semantic roles & 50–950 ramp
primary
#504282
secondary
#9EA977
accent
#C95FB2
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B080F
muted
#7C7B7F