#784CB5#784CB5
#784CB5 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.7% C 0.161 H 300.2°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).
Color values
| HEX | #784CB5 |
|---|---|
| RGB | rgb(120, 76, 181) |
| HSL | hsl(265, 42%, 50%) |
| HSV | hsv(265, 58%, 71%) |
| CMYK | cmyk(33.7%, 58%, 0%, 29%) |
| CIE-LAB | lab(42.00, 40.66, -49.13) |
| CIE-LCH | lch(42.00, 63.77, 309.61°) |
| OKLab | oklab(51.72% 0.0808 -0.1392) |
| OKLCH | oklch(51.72% 0.161 300.2) |
| XYZ | xyz(18.6687, 12.4980, 45.1359) |
| Luminance | 0.1250 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.72
Bluey Purple
#6241C7
ΔE00 5.93
Light Indigo
#6D5ACF
ΔE00 6.57
Slate Blue
#6A5ACD
ΔE00 6.70
Iris
#6258C4
ΔE00 6.71
Deep Lavender
#8D5EB7
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#784CB5 #89B54C
analogous
#4C54B5 #784CB5 #AD4CB5
triadic
#784CB5 #B5784C #4CB578
tetradic
#784CB5 #B54C54 #89B54C #4CB5AD
square
#784CB5 #B54C54 #89B54C #4CB5AD
split-complementary
#784CB5 #B5AD4C #54B54C
monochromatic
#3F275F #5B398B #784CB5 #9977C7 #B9A3D9
Accessibility & contrast
On white
6.00
#784CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#784CB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #784CB5
6.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##784CB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##784CB5 | 1.00 | 6.00 | 3.50 | 6.00 |
| #FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1963B8
Deuteranopia (green-blind)
#2D62B3
Tritanopia (blue-blind)
#6B6179
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #784cb5; /* rgb */ color: rgb(120, 76, 181); /* oklch */ color: oklch(51.7% 0.161 300.2);
Tailwind
colors: {
custom: {
50: '#a380cc',
500: '#784cb5',
950: '#000000',
},
}SCSS
$custom: #784cb5; $custom-light: #a380cc; $custom-dark: #000000;
JSON
{
"hex": "#784cb5",
"rgb": {
"r": 120,
"g": 76,
"b": 181
},
"hsl": {
"h": 265.143,
"s": 41.502,
"l": 50.392
},
"oklch": {
"l": 0.51719,
"c": 0.16094,
"h": 300.2
},
"luminance": 0.12498
}Semantic roles & 50–950 ramp
primary
#784CB5
secondary
#B2C697
accent
#D1569E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82