#782AA3#782AA3
#782AA3 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.187 H 310.4°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).
Color values
| HEX | #782AA3 |
|---|---|
| RGB | rgb(120, 42, 163) |
| HSL | hsl(279, 59%, 40%) |
| HSV | hsv(279, 74%, 64%) |
| CMYK | cmyk(26.4%, 74.2%, 0%, 36.1%) |
| CIE-LAB | lab(34.59, 53.25, -50.36) |
| CIE-LCH | lch(34.59, 73.29, 316.60°) |
| OKLab | oklab(45.98% 0.1215 -0.1426) |
| OKLCH | oklch(45.98% 0.187 310.4) |
| XYZ | xyz(15.1833, 8.2937, 35.4442) |
| Luminance | 0.0829 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.40
Rebeccapurple
#663399
ΔE00 3.73
Darkmagenta
#8B008B
ΔE00 7.01
Darkviolet
#9400D3
ΔE00 7.43
Purple
#800080
ΔE00 7.82
Purply
#983FB2
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782AA3 #55A32A
analogous
#3C2AA3 #782AA3 #A32A91
triadic
#782AA3 #A3782A #2AA378
tetradic
#782AA3 #A33C2A #55A32A #2A91A3
square
#782AA3 #A33C2A #55A32A #2A91A3
split-complementary
#782AA3 #91A32A #2AA33C
monochromatic
#301142 #541D72 #782AA3 #9A3DCD #B36EDA
Accessibility & contrast
On white
7.90
#782AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#782AA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782AA3
7.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782AA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782AA3 | 1.00 | 7.90 | 2.66 | 7.90 |
| #FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#1153A0
Tritanopia (blue-blind)
#724664
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #782aa3; /* rgb */ color: rgb(120, 42, 163); /* oklch */ color: oklch(46.0% 0.187 310.4);
Tailwind
colors: {
custom: {
50: '#a36bbf',
500: '#782aa3',
950: '#000000',
},
}SCSS
$custom: #782aa3; $custom-light: #a36bbf; $custom-dark: #000000;
JSON
{
"hex": "#782aa3",
"rgb": {
"r": 120,
"g": 42,
"b": 163
},
"hsl": {
"h": 278.678,
"s": 59.024,
"l": 40.196
},
"oklch": {
"l": 0.45984,
"c": 0.18738,
"h": 310.4
},
"luminance": 0.08293
}Semantic roles & 50–950 ramp
primary
#782AA3
secondary
#88C068
accent
#E2467D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81