#782CBD#782CBD
#782CBD is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.211 H 302.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #782CBD |
|---|---|
| RGB | rgb(120, 44, 189) |
| HSL | hsl(271, 62%, 46%) |
| HSV | hsv(271, 77%, 74%) |
| CMYK | cmyk(36.5%, 76.7%, 0%, 25.9%) |
| CIE-LAB | lab(36.87, 58.33, -62.13) |
| CIE-LCH | lch(36.87, 85.22, 313.19°) |
| OKLab | oklab(48.22% 0.1143 -0.1772) |
| OKLCH | oklch(48.22% 0.211 302.8) |
| XYZ | xyz(17.8295, 9.4685, 49.0225) |
| Luminance | 0.0947 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 5.06
Purple Blue
#5D21D0
ΔE00 5.34
Blueviolet
#8A2BE2
ΔE00 5.69
Bluey Purple
#6241C7
ΔE00 5.85
Rebeccapurple
#663399
ΔE00 5.89
Burple
#6832E3
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782CBD #71BD2C
analogous
#2F2CBD #782CBD #BD2CB9
triadic
#782CBD #BD782C #2CBD78
tetradic
#782CBD #BD2F2C #71BD2C #2CB9BD
square
#782CBD #BD2F2C #71BD2C #2CB9BD
split-complementary
#782CBD #B9BD2C #2CBD2F
monochromatic
#39155A #58208B #782CBD #9650D6 #B482E2
Accessibility & contrast
On white
7.26
#782CBD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#782CBD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782CBD
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782CBD | 1.00 | 7.26 | 2.89 | 7.26 |
| #FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#6A5273
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #782cbd; /* rgb */ color: rgb(120, 44, 189); /* oklch */ color: oklch(48.2% 0.211 302.8);
Tailwind
colors: {
custom: {
50: '#a56ed2',
500: '#782cbd',
950: '#000000',
},
}SCSS
$custom: #782cbd; $custom-light: #a56ed2; $custom-dark: #000000;
JSON
{
"hex": "#782cbd",
"rgb": {
"r": 120,
"g": 44,
"b": 189
},
"hsl": {
"h": 271.448,
"s": 62.232,
"l": 45.686
},
"oklch": {
"l": 0.4822,
"c": 0.21089,
"h": 302.8
},
"luminance": 0.09469
}Semantic roles & 50–950 ramp
primary
#782CBD
secondary
#A0CB7A
accent
#E54290
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83