#782ABB#782ABB
#782ABB is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.211 H 303.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #782ABB |
|---|---|
| RGB | rgb(120, 42, 187) |
| HSL | hsl(272, 63%, 45%) |
| HSV | hsv(272, 78%, 73%) |
| CMYK | cmyk(35.8%, 77.5%, 0%, 26.7%) |
| CIE-LAB | lab(36.44, 58.65, -61.66) |
| CIE-LCH | lch(36.44, 85.10, 313.57°) |
| OKLab | oklab(47.87% 0.1165 -0.1758) |
| OKLCH | oklch(47.87% 0.211 303.5) |
| XYZ | xyz(17.5412, 9.2369, 47.8628) |
| Luminance | 0.0924 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 5.11
Purple Blue
#5D21D0
ΔE00 5.41
Purple (survey)
#7E1E9C
ΔE00 5.62
Rebeccapurple
#663399
ΔE00 5.69
Blueviolet
#8A2BE2
ΔE00 6.03
Bluey Purple
#6241C7
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782ABB #6DBB2A
analogous
#302ABB #782ABB #BB2AB6
triadic
#782ABB #BB782A #2ABB78
tetradic
#782ABB #BB302A #6DBB2A #2AB6BB
square
#782ABB #BB302A #6DBB2A #2AB6BB
split-complementary
#782ABB #B6BB2A #2ABB30
monochromatic
#381457 #581F89 #782ABB #964CD7 #B47DE2
Accessibility & contrast
On white
7.38
#782ABB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#782ABB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782ABB
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782ABB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782ABB | 1.00 | 7.38 | 2.85 | 7.38 |
| #FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#6A5072
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #782abb; /* rgb */ color: rgb(120, 42, 187); /* oklch */ color: oklch(47.9% 0.211 303.5);
Tailwind
colors: {
custom: {
50: '#a56dd0',
500: '#782abb',
950: '#000000',
},
}SCSS
$custom: #782abb; $custom-light: #a56dd0; $custom-dark: #000000;
JSON
{
"hex": "#782abb",
"rgb": {
"r": 120,
"g": 42,
"b": 187
},
"hsl": {
"h": 272.276,
"s": 63.319,
"l": 44.902
},
"oklch": {
"l": 0.47865,
"c": 0.21092,
"h": 303.5
},
"luminance": 0.09237
}Semantic roles & 50–950 ramp
primary
#782ABB
secondary
#9DCA76
accent
#E6418E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82