#784EB7#784EB7
#784EB7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.2% C 0.160 H 299.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #784EB7 |
|---|---|
| RGB | rgb(120, 78, 183) |
| HSL | hsl(264, 42%, 51%) |
| HSV | hsv(264, 57%, 72%) |
| CMYK | cmyk(34.4%, 57.4%, 0%, 28.2%) |
| CIE-LAB | lab(42.55, 40.05, -49.41) |
| CIE-LCH | lch(42.55, 63.61, 309.03°) |
| OKLab | oklab(52.17% 0.0783 -0.14) |
| OKLCH | oklch(52.17% 0.16 299.2) |
| XYZ | xyz(19.0153, 12.8606, 46.2711) |
| Luminance | 0.1286 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.77
Light Indigo
#6D5ACF
ΔE00 6.00
Bluey Purple
#6241C7
ΔE00 6.00
Slate Blue
#6A5ACD
ΔE00 6.14
Iris
#6258C4
ΔE00 6.24
Deep Lavender
#8D5EB7
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#784EB7 #8DB74E
analogous
#4E58B7 #784EB7 #AC4EB7
triadic
#784EB7 #B7784E #4EB778
tetradic
#784EB7 #B74E58 #8DB74E #4EB7AC
square
#784EB7 #B74E58 #8DB74E #4EB7AC
split-complementary
#784EB7 #B7AC4E #58B74E
monochromatic
#3F2863 #5B3A8E #784EB7 #997AC9 #BAA5DA
Accessibility & contrast
On white
5.88
#784EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#784EB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #784EB7
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##784EB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##784EB7 | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C64BA
Deuteranopia (green-blind)
#2D64B5
Tritanopia (blue-blind)
#6A637B
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #784eb7; /* rgb */ color: rgb(120, 78, 183); /* oklch */ color: oklch(52.2% 0.160 299.2);
Tailwind
colors: {
custom: {
50: '#a381cd',
500: '#784eb7',
950: '#000000',
},
}SCSS
$custom: #784eb7; $custom-light: #a381cd; $custom-dark: #000000;
JSON
{
"hex": "#784eb7",
"rgb": {
"r": 120,
"g": 78,
"b": 183
},
"hsl": {
"h": 264,
"s": 42.169,
"l": 51.176
},
"oklch": {
"l": 0.52167,
"c": 0.16041,
"h": 299.2
},
"luminance": 0.12861
}Semantic roles & 50–950 ramp
primary
#784EB7
secondary
#B5C899
accent
#D256A0
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A13
muted
#7F7C82