#782CA0#782CA0
#782CA0 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.182 H 311.2°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).
Color values
| HEX | #782CA0 |
|---|---|
| RGB | rgb(120, 44, 160) |
| HSL | hsl(279, 57%, 40%) |
| HSV | hsv(279, 73%, 63%) |
| CMYK | cmyk(25%, 72.5%, 0%, 37.3%) |
| CIE-LAB | lab(34.67, 51.75, -48.42) |
| CIE-LCH | lch(34.67, 70.87, 316.90°) |
| OKLab | oklab(45.97% 0.12 -0.1369) |
| OKLCH | oklch(45.97% 0.182 311.2) |
| XYZ | xyz(14.9904, 8.3329, 34.0696) |
| Luminance | 0.0833 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.35
Rebeccapurple
#663399
ΔE00 3.60
Darkmagenta
#8B008B
ΔE00 6.80
Purple
#800080
ΔE00 7.58
Darkviolet
#9400D3
ΔE00 7.86
Purply
#983FB2
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782CA0 #54A02C
analogous
#3E2CA0 #782CA0 #A02C8E
triadic
#782CA0 #A0782C #2CA078
tetradic
#782CA0 #A03E2C #54A02C #2C8EA0
square
#782CA0 #A03E2C #54A02C #2C8EA0
split-complementary
#782CA0 #8EA02C #2CA03E
monochromatic
#301240 #541F70 #782CA0 #9A3FCA #B36FD7
Accessibility & contrast
On white
7.88
#782CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#782CA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782CA0
7.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782CA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782CA0 | 1.00 | 7.88 | 2.67 | 7.88 |
| #FFFFFF | 7.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#1A539D
Tritanopia (blue-blind)
#734663
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #782ca0; /* rgb */ color: rgb(120, 44, 160); /* oklch */ color: oklch(46.0% 0.182 311.2);
Tailwind
colors: {
custom: {
50: '#a36cbd',
500: '#782ca0',
950: '#000000',
},
}SCSS
$custom: #782ca0; $custom-light: #a36cbd; $custom-dark: #000000;
JSON
{
"hex": "#782ca0",
"rgb": {
"r": 120,
"g": 44,
"b": 160
},
"hsl": {
"h": 279.31,
"s": 56.863,
"l": 40
},
"oklch": {
"l": 0.45972,
"c": 0.18205,
"h": 311.2
},
"luminance": 0.08332
}Semantic roles & 50–950 ramp
primary
#782CA0
secondary
#87BF69
accent
#E0487C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81