#782AA5#782AA5
#782AA5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.189 H 309.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).
Color values
| HEX | #782AA5 |
|---|---|
| RGB | rgb(120, 42, 165) |
| HSL | hsl(278, 59%, 41%) |
| HSV | hsv(278, 75%, 65%) |
| CMYK | cmyk(27.3%, 74.5%, 0%, 35.3%) |
| CIE-LAB | lab(34.73, 53.69, -51.33) |
| CIE-LCH | lch(34.73, 74.28, 316.29°) |
| OKLab | oklab(46.13% 0.1212 -0.1455) |
| OKLCH | oklch(46.13% 0.189 309.8) |
| XYZ | xyz(15.3639, 8.3659, 36.3954) |
| Luminance | 0.0837 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.63
Rebeccapurple
#663399
ΔE00 3.79
Darkviolet
#9400D3
ΔE00 7.18
Darkmagenta
#8B008B
ΔE00 7.26
Purple Blue
#5D21D0
ΔE00 8.05
Purply
#983FB2
ΔE00 8.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782AA5 #57A52A
analogous
#3B2AA5 #782AA5 #A52A94
triadic
#782AA5 #A5782A #2AA578
tetradic
#782AA5 #A53B2A #57A52A #2A94A5
square
#782AA5 #A53B2A #57A52A #2A94A5
split-complementary
#782AA5 #94A52A #2AA53B
monochromatic
#311143 #551E74 #782AA5 #993ECE #B36FDA
Accessibility & contrast
On white
7.86
#782AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#782AA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782AA5
7.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782AA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782AA5 | 1.00 | 7.86 | 2.67 | 7.86 |
| #FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0A53A2
Tritanopia (blue-blind)
#724765
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #782aa5; /* rgb */ color: rgb(120, 42, 165); /* oklch */ color: oklch(46.1% 0.189 309.8);
Tailwind
colors: {
custom: {
50: '#a36bc0',
500: '#782aa5',
950: '#000000',
},
}SCSS
$custom: #782aa5; $custom-light: #a36bc0; $custom-dark: #000000;
JSON
{
"hex": "#782aa5",
"rgb": {
"r": 120,
"g": 42,
"b": 165
},
"hsl": {
"h": 278.049,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.46134,
"c": 0.18933,
"h": 309.8
},
"luminance": 0.08366
}Semantic roles & 50–950 ramp
primary
#782AA5
secondary
#8AC169
accent
#E3457F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81