#792EA8#792EA8
#792EA8 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.188 H 308.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).
Color values
| HEX | #792EA8 |
|---|---|
| RGB | rgb(121, 46, 168) |
| HSL | hsl(277, 57%, 42%) |
| HSV | hsv(277, 73%, 66%) |
| CMYK | cmyk(28%, 72.6%, 0%, 34.1%) |
| CIE-LAB | lab(35.69, 52.88, -51.58) |
| CIE-LCH | lch(35.69, 73.87, 315.71°) |
| OKLab | oklab(46.91% 0.1181 -0.1462) |
| OKLCH | oklch(46.91% 0.188 308.9) |
| XYZ | xyz(15.9286, 8.8464, 37.9066) |
| Luminance | 0.0885 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.33
Rebeccapurple
#663399
ΔE00 3.90
Darkviolet
#9400D3
ΔE00 6.87
Purply
#983FB2
ΔE00 7.45
Darkorchid
#9932CC
ΔE00 7.48
Darkmagenta
#8B008B
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#792EA8 #5DA82E
analogous
#3C2EA8 #792EA8 #A82E9A
triadic
#792EA8 #A8792E #2EA879
tetradic
#792EA8 #A83C2E #5DA82E #2E9AA8
square
#792EA8 #A83C2E #5DA82E #2E9AA8
split-complementary
#792EA8 #9AA82E #2EA83C
monochromatic
#341448 #562178 #792EA8 #9947CD #B477DA
Accessibility & contrast
On white
7.58
#792EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#792EA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #792EA8
7.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##792EA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##792EA8 | 1.00 | 7.58 | 2.77 | 7.58 |
| #FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0E55A5
Tritanopia (blue-blind)
#724A68
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #792ea8; /* rgb */ color: rgb(121, 46, 168); /* oklch */ color: oklch(46.9% 0.188 308.9);
Tailwind
colors: {
custom: {
50: '#a46ec3',
500: '#792ea8',
950: '#000000',
},
}SCSS
$custom: #792ea8; $custom-light: #a46ec3; $custom-dark: #000000;
JSON
{
"hex": "#792ea8",
"rgb": {
"r": 121,
"g": 46,
"b": 168
},
"hsl": {
"h": 276.885,
"s": 57.009,
"l": 41.961
},
"oklch": {
"l": 0.46909,
"c": 0.18793,
"h": 308.9
},
"luminance": 0.08846
}Semantic roles & 50–950 ramp
primary
#792EA8
secondary
#90C270
accent
#E04882
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81