#782CA1#782CA1
#782CA1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.183 H 310.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).
Color values
| HEX | #782CA1 |
|---|---|
| RGB | rgb(120, 44, 161) |
| HSL | hsl(279, 57%, 40%) |
| HSV | hsv(279, 73%, 63%) |
| CMYK | cmyk(25.5%, 72.7%, 0%, 36.9%) |
| CIE-LAB | lab(34.74, 51.97, -48.91) |
| CIE-LCH | lch(34.74, 71.37, 316.74°) |
| OKLab | oklab(46.05% 0.1198 -0.1384) |
| OKLCH | oklch(46.05% 0.183 310.9) |
| XYZ | xyz(15.0782, 8.3680, 34.5322) |
| Luminance | 0.0837 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.44
Rebeccapurple
#663399
ΔE00 3.60
Darkmagenta
#8B008B
ΔE00 6.92
Purple
#800080
ΔE00 7.72
Darkviolet
#9400D3
ΔE00 7.73
Purply
#983FB2
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782CA1 #55A12C
analogous
#3D2CA1 #782CA1 #A12C90
triadic
#782CA1 #A1782C #2CA178
tetradic
#782CA1 #A13D2C #55A12C #2C90A1
square
#782CA1 #A13D2C #55A12C #2C90A1
split-complementary
#782CA1 #90A12C #2CA13D
monochromatic
#301241 #541F71 #782CA1 #9A40CB #B370D8
Accessibility & contrast
On white
7.85
#782CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#782CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782CA1
7.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782CA1 | 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)
#004EA4
Deuteranopia (green-blind)
#18539E
Tritanopia (blue-blind)
#734664
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #782ca1; /* rgb */ color: rgb(120, 44, 161); /* oklch */ color: oklch(46.0% 0.183 310.9);
Tailwind
colors: {
custom: {
50: '#a36cbd',
500: '#782ca1',
950: '#000000',
},
}SCSS
$custom: #782ca1; $custom-light: #a36cbd; $custom-dark: #000000;
JSON
{
"hex": "#782ca1",
"rgb": {
"r": 120,
"g": 44,
"b": 161
},
"hsl": {
"h": 278.974,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.46045,
"c": 0.18304,
"h": 310.9
},
"luminance": 0.08368
}Semantic roles & 50–950 ramp
primary
#782CA1
secondary
#88BF6A
accent
#E0477D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81