#782CA2#782CA2
#782CA2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.184 H 310.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).
Color values
| HEX | #782CA2 |
|---|---|
| RGB | rgb(120, 44, 162) |
| HSL | hsl(279, 57%, 40%) |
| HSV | hsv(279, 73%, 64%) |
| CMYK | cmyk(25.9%, 72.8%, 0%, 36.5%) |
| CIE-LAB | lab(34.81, 52.19, -49.40) |
| CIE-LCH | lch(34.81, 71.86, 316.58°) |
| OKLab | oklab(46.12% 0.1197 -0.1398) |
| OKLCH | oklch(46.12% 0.184 310.6) |
| XYZ | xyz(15.1667, 8.4034, 34.9985) |
| Luminance | 0.0840 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.52
Rebeccapurple
#663399
ΔE00 3.61
Darkmagenta
#8B008B
ΔE00 7.04
Darkviolet
#9400D3
ΔE00 7.60
Purple
#800080
ΔE00 7.86
Purply
#983FB2
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782CA2 #56A22C
analogous
#3D2CA2 #782CA2 #A22C91
triadic
#782CA2 #A2782C #2CA278
tetradic
#782CA2 #A23D2C #56A22C #2C91A2
square
#782CA2 #A23D2C #56A22C #2C91A2
split-complementary
#782CA2 #91A22C #2CA23D
monochromatic
#311242 #541F72 #782CA2 #9A40CB #B370D8
Accessibility & contrast
On white
7.83
#782CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#782CA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782CA2
7.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782CA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782CA2 | 1.00 | 7.83 | 2.68 | 7.83 |
| #FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#17539F
Tritanopia (blue-blind)
#724664
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #782ca2; /* rgb */ color: rgb(120, 44, 162); /* oklch */ color: oklch(46.1% 0.184 310.6);
Tailwind
colors: {
custom: {
50: '#a36cbe',
500: '#782ca2',
950: '#000000',
},
}SCSS
$custom: #782ca2; $custom-light: #a36cbe; $custom-dark: #000000;
JSON
{
"hex": "#782ca2",
"rgb": {
"r": 120,
"g": 44,
"b": 162
},
"hsl": {
"h": 278.644,
"s": 57.282,
"l": 40.392
},
"oklch": {
"l": 0.46119,
"c": 0.18403,
"h": 310.6
},
"luminance": 0.08403
}Semantic roles & 50–950 ramp
primary
#782CA2
secondary
#89BF6A
accent
#E1477E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81