#782AAF#782AAF
#782AAF is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.9% C 0.199 H 306.8°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).
Color values
| HEX | #782AAF |
|---|---|
| RGB | rgb(120, 42, 175) |
| HSL | hsl(275, 61%, 43%) |
| HSV | hsv(275, 76%, 69%) |
| CMYK | cmyk(31.4%, 76%, 0%, 31.4%) |
| CIE-LAB | lab(35.49, 55.92, -56.09) |
| CIE-LCH | lch(35.49, 79.21, 314.91°) |
| OKLab | oklab(46.9% 0.1193 -0.1595) |
| OKLCH | oklch(46.9% 0.199 306.8) |
| XYZ | xyz(16.3099, 8.7443, 41.3777) |
| Luminance | 0.0874 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.95
Rebeccapurple
#663399
ΔE00 4.44
Darkviolet
#9400D3
ΔE00 6.09
Purple Blue
#5D21D0
ΔE00 6.70
Darkorchid
#9932CC
ΔE00 7.32
Bluey Purple
#6241C7
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782AAF #61AF2A
analogous
#362AAF #782AAF #AF2AA3
triadic
#782AAF #AF782A #2AAF78
tetradic
#782AAF #AF362A #61AF2A #2AA3AF
square
#782AAF #AF362A #61AF2A #2AA3AF
split-complementary
#782AAF #A3AF2A #2AAF36
monochromatic
#34124C #561E7E #782AAF #9744D2 #B375DE
Accessibility & contrast
On white
7.64
#782AAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#782AAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782AAF
7.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782AAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782AAF | 1.00 | 7.64 | 2.75 | 7.64 |
| #FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#6E4B6B
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #782aaf; /* rgb */ color: rgb(120, 42, 175); /* oklch */ color: oklch(46.9% 0.199 306.8);
Tailwind
colors: {
custom: {
50: '#a46cc8',
500: '#782aaf',
950: '#000000',
},
}SCSS
$custom: #782aaf; $custom-light: #a46cc8; $custom-dark: #000000;
JSON
{
"hex": "#782aaf",
"rgb": {
"r": 120,
"g": 42,
"b": 175
},
"hsl": {
"h": 275.188,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.46903,
"c": 0.19914,
"h": 306.8
},
"luminance": 0.08744
}Semantic roles & 50–950 ramp
primary
#782AAF
secondary
#93C66F
accent
#E44386
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82