#792AA5#792AA5
#792AA5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.190 H 310.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #792AA5 |
|---|---|
| RGB | rgb(121, 42, 165) |
| HSL | hsl(279, 59%, 41%) |
| HSV | hsv(279, 75%, 65%) |
| CMYK | cmyk(26.7%, 74.5%, 0%, 35.3%) |
| CIE-LAB | lab(34.88, 53.89, -51.09) |
| CIE-LCH | lch(34.88, 74.25, 316.53°) |
| OKLab | oklab(46.27% 0.1225 -0.1447) |
| OKLCH | oklch(46.27% 0.19 310.3) |
| XYZ | xyz(15.5033, 8.4378, 36.4020) |
| Luminance | 0.0844 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.54
Rebeccapurple
#663399
ΔE00 3.93
Darkviolet
#9400D3
ΔE00 7.11
Darkmagenta
#8B008B
ΔE00 7.14
Purply
#983FB2
ΔE00 7.89
Darkorchid
#9932CC
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#792AA5 #56A52A
analogous
#3C2AA5 #792AA5 #A52A93
triadic
#792AA5 #A5792A #2AA579
tetradic
#792AA5 #A53C2A #56A52A #2A93A5
square
#792AA5 #A53C2A #56A52A #2A93A5
split-complementary
#792AA5 #93A52A #2AA53C
monochromatic
#311143 #551E74 #792AA5 #9B3ECE #B46FDA
Accessibility & contrast
On white
7.81
#792AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#792AA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #792AA5
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##792AA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##792AA5 | 1.00 | 7.81 | 2.69 | 7.81 |
| #FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0E53A2
Tritanopia (blue-blind)
#734665
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #792aa5; /* rgb */ color: rgb(121, 42, 165); /* oklch */ color: oklch(46.3% 0.190 310.3);
Tailwind
colors: {
custom: {
50: '#a46cc0',
500: '#792aa5',
950: '#000000',
},
}SCSS
$custom: #792aa5; $custom-light: #a46cc0; $custom-dark: #000000;
JSON
{
"hex": "#792aa5",
"rgb": {
"r": 121,
"g": 42,
"b": 165
},
"hsl": {
"h": 278.537,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.46267,
"c": 0.18963,
"h": 310.3
},
"luminance": 0.08437
}Semantic roles & 50–950 ramp
primary
#792AA5
secondary
#89C169
accent
#E3457E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81