#792AA8#792AA8
#792AA8 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.193 H 309.3°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #792AA8 |
|---|---|
| RGB | rgb(121, 42, 168) |
| HSL | hsl(278, 60%, 41%) |
| HSV | hsv(278, 75%, 66%) |
| CMYK | cmyk(28%, 75%, 0%, 34.1%) |
| CIE-LAB | lab(35.10, 54.55, -52.53) |
| CIE-LCH | lch(35.10, 75.73, 316.08°) |
| OKLab | oklab(46.49% 0.122 -0.149) |
| OKLCH | oklch(46.49% 0.193 309.3) |
| XYZ | xyz(15.7796, 8.5483, 37.8569) |
| Luminance | 0.0855 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.92
Rebeccapurple
#663399
ΔE00 4.05
Darkviolet
#9400D3
ΔE00 6.75
Darkmagenta
#8B008B
ΔE00 7.52
Darkorchid
#9932CC
ΔE00 7.74
Purple Blue
#5D21D0
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#792AA8 #59A82A
analogous
#3A2AA8 #792AA8 #A82A98
triadic
#792AA8 #A8792A #2AA879
tetradic
#792AA8 #A83A2A #59A82A #2A98A8
square
#792AA8 #A83A2A #59A82A #2A98A8
split-complementary
#792AA8 #98A82A #2AA83A
monochromatic
#321246 #561E77 #792AA8 #9A40CF #B471DB
Accessibility & contrast
On white
7.75
#792AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#792AA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #792AA8
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##792AA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##792AA8 | 1.00 | 7.75 | 2.71 | 7.75 |
| #FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0354A5
Tritanopia (blue-blind)
#724867
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #792aa8; /* rgb */ color: rgb(121, 42, 168); /* oklch */ color: oklch(46.5% 0.193 309.3);
Tailwind
colors: {
custom: {
50: '#a46cc3',
500: '#792aa8',
950: '#000000',
},
}SCSS
$custom: #792aa8; $custom-light: #a46cc3; $custom-dark: #000000;
JSON
{
"hex": "#792aa8",
"rgb": {
"r": 121,
"g": 42,
"b": 168
},
"hsl": {
"h": 277.619,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.46493,
"c": 0.19256,
"h": 309.3
},
"luminance": 0.08548
}Semantic roles & 50–950 ramp
primary
#792AA8
secondary
#8CC36B
accent
#E34580
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81