#782D9F#782D9F
#782D9F is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.180 H 311.4°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).
Color values
| HEX | #782D9F |
|---|---|
| RGB | rgb(120, 45, 159) |
| HSL | hsl(279, 56%, 40%) |
| HSV | hsv(279, 72%, 62%) |
| CMYK | cmyk(24.5%, 71.7%, 0%, 37.6%) |
| CIE-LAB | lab(34.75, 51.10, -47.69) |
| CIE-LCH | lch(34.75, 69.90, 316.98°) |
| OKLab | oklab(46.01% 0.119 -0.1348) |
| OKLCH | oklch(46.01% 0.18 311.4) |
| XYZ | xyz(14.9410, 8.3734, 33.6233) |
| Luminance | 0.0837 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.43
Rebeccapurple
#663399
ΔE00 3.56
Darkmagenta
#8B008B
ΔE00 6.77
Purple
#800080
ΔE00 7.54
Purply
#983FB2
ΔE00 7.83
Warm Purple
#952E8F
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782D9F #549F2D
analogous
#3F2D9F #782D9F #9F2D8D
triadic
#782D9F #9F782D #2D9F78
tetradic
#782D9F #9F3F2D #549F2D #2D8D9F
square
#782D9F #9F3F2D #549F2D #2D8D9F
split-complementary
#782D9F #8D9F2D #2D9F3F
monochromatic
#301240 #54206F #782D9F #9A40C9 #B370D6
Accessibility & contrast
On white
7.85
#782D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#782D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782D9F
7.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782D9F | 1.00 | 7.85 | 2.67 | 7.85 |
| #FFFFFF | 7.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#1D539D
Tritanopia (blue-blind)
#734663
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #782d9f; /* rgb */ color: rgb(120, 45, 159); /* oklch */ color: oklch(46.0% 0.180 311.4);
Tailwind
colors: {
custom: {
50: '#a36dbc',
500: '#782d9f',
950: '#000000',
},
}SCSS
$custom: #782d9f; $custom-light: #a36dbc; $custom-dark: #000000;
JSON
{
"hex": "#782d9f",
"rgb": {
"r": 120,
"g": 45,
"b": 159
},
"hsl": {
"h": 279.474,
"s": 55.882,
"l": 40
},
"oklch": {
"l": 0.46008,
"c": 0.17982,
"h": 311.4
},
"luminance": 0.08373
}Semantic roles & 50–950 ramp
primary
#782D9F
secondary
#87BE6A
accent
#DF497C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81