#784FB7#784FB7
#784FB7 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.3% C 0.159 H 299.0°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #784FB7 |
|---|---|
| RGB | rgb(120, 79, 183) |
| HSL | hsl(264, 42%, 51%) |
| HSV | hsv(264, 57%, 72%) |
| CMYK | cmyk(34.4%, 56.8%, 0%, 28.2%) |
| CIE-LAB | lab(42.77, 39.48, -49.07) |
| CIE-LCH | lch(42.77, 62.98, 308.82°) |
| OKLab | oklab(52.33% 0.077 -0.139) |
| OKLCH | oklch(52.33% 0.159 299) |
| XYZ | xyz(19.0869, 13.0037, 46.2950) |
| Luminance | 0.1300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.69
Light Indigo
#6D5ACF
ΔE00 5.84
Slate Blue
#6A5ACD
ΔE00 5.98
Iris
#6258C4
ΔE00 6.10
Bluey Purple
#6241C7
ΔE00 6.16
Deep Lavender
#8D5EB7
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#784FB7 #8EB74F
analogous
#4F5AB7 #784FB7 #AC4FB7
triadic
#784FB7 #B7784F #4FB778
tetradic
#784FB7 #B74F5A #8EB74F #4FB7AC
square
#784FB7 #B74F5A #8EB74F #4FB7AC
split-complementary
#784FB7 #B7AC4F #5AB74F
monochromatic
#402963 #5B3A8F #784FB7 #997AC9 #BBA6DB
Accessibility & contrast
On white
5.83
#784FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#784FB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #784FB7
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##784FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##784FB7 | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F65BA
Deuteranopia (green-blind)
#2F64B5
Tritanopia (blue-blind)
#6A647B
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #784fb7; /* rgb */ color: rgb(120, 79, 183); /* oklch */ color: oklch(52.3% 0.159 299.0);
Tailwind
colors: {
custom: {
50: '#a382cd',
500: '#784fb7',
950: '#000000',
},
}SCSS
$custom: #784fb7; $custom-light: #a382cd; $custom-dark: #000000;
JSON
{
"hex": "#784fb7",
"rgb": {
"r": 120,
"g": 79,
"b": 183
},
"hsl": {
"h": 263.654,
"s": 41.935,
"l": 51.373
},
"oklch": {
"l": 0.52326,
"c": 0.1589,
"h": 299
},
"luminance": 0.13004
}Semantic roles & 50–950 ramp
primary
#784FB7
secondary
#B6C89A
accent
#D256A1
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A13
muted
#7F7C82