#784FB1#784FB1
#784FB1 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 51.9% C 0.151 H 300.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).
Color values
| HEX | #784FB1 |
|---|---|
| RGB | rgb(120, 79, 177) |
| HSL | hsl(265, 39%, 50%) |
| HSV | hsv(265, 55%, 69%) |
| CMYK | cmyk(32.2%, 55.4%, 0%, 30.6%) |
| CIE-LAB | lab(42.40, 37.92, -46.13) |
| CIE-LCH | lch(42.40, 59.72, 309.42°) |
| OKLab | oklab(51.93% 0.0769 -0.1304) |
| OKLCH | oklch(51.93% 0.151 300.5) |
| XYZ | xyz(18.4756, 12.7593, 43.0759) |
| Luminance | 0.1276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 1.67
Deep Lavender
#8D5EB7
ΔE00 6.23
Light Indigo
#6D5ACF
ΔE00 6.68
Iris
#6258C4
ΔE00 6.75
Slate Blue
#6A5ACD
ΔE00 6.78
Bluey Purple
#6241C7
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#784FB1 #88B14F
analogous
#4F57B1 #784FB1 #A94FB1
triadic
#784FB1 #B1784F #4FB178
tetradic
#784FB1 #B14F57 #88B14F #4FB1A9
square
#784FB1 #B14F57 #88B14F #4FB1A9
split-complementary
#784FB1 #B1A94F #57B14F
monochromatic
#3F295D #5B3C87 #784FB1 #9979C4 #B9A4D7
Accessibility & contrast
On white
5.91
#784FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#784FB1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #784FB1
5.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##784FB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##784FB1 | 1.00 | 5.91 | 3.55 | 5.91 |
| #FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2864B4
Deuteranopia (green-blind)
#3563AF
Tritanopia (blue-blind)
#6C6278
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #784fb1; /* rgb */ color: rgb(120, 79, 177); /* oklch */ color: oklch(51.9% 0.151 300.5);
Tailwind
colors: {
custom: {
50: '#a282c9',
500: '#784fb1',
950: '#000000',
},
}SCSS
$custom: #784fb1; $custom-light: #a282c9; $custom-dark: #000000;
JSON
{
"hex": "#784fb1",
"rgb": {
"r": 120,
"g": 79,
"b": 177
},
"hsl": {
"h": 265.102,
"s": 38.583,
"l": 50.196
},
"oklch": {
"l": 0.51934,
"c": 0.15136,
"h": 300.5
},
"luminance": 0.12759
}Semantic roles & 50–950 ramp
primary
#784FB1
secondary
#B1C498
accent
#CF599D
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82