#792BA1#792BA1
#792BA1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.185 H 311.5°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).
Color values
| HEX | #792BA1 |
|---|---|
| RGB | rgb(121, 43, 161) |
| HSL | hsl(280, 58%, 40%) |
| HSV | hsv(280, 73%, 63%) |
| CMYK | cmyk(24.8%, 73.3%, 0%, 36.9%) |
| CIE-LAB | lab(34.73, 52.60, -48.91) |
| CIE-LCH | lch(34.73, 71.83, 317.08°) |
| OKLab | oklab(46.07% 0.1222 -0.1383) |
| OKLCH | oklch(46.07% 0.185 311.5) |
| XYZ | xyz(15.1809, 8.3663, 34.5265) |
| Luminance | 0.0837 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.22
Rebeccapurple
#663399
ΔE00 3.81
Darkmagenta
#8B008B
ΔE00 6.72
Purple
#800080
ΔE00 7.55
Darkviolet
#9400D3
ΔE00 7.64
Purply
#983FB2
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#792BA1 #53A12B
analogous
#3E2BA1 #792BA1 #A12B8E
triadic
#792BA1 #A1792B #2BA179
tetradic
#792BA1 #A13E2B #53A12B #2B8EA1
square
#792BA1 #A13E2B #53A12B #2B8EA1
split-complementary
#792BA1 #8EA12B #2BA13E
monochromatic
#301140 #551E71 #792BA1 #9B3ECB #B46ED8
Accessibility & contrast
On white
7.86
#792BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#792BA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #792BA1
7.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##792BA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##792BA1 | 1.00 | 7.86 | 2.67 | 7.86 |
| #FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#19539E
Tritanopia (blue-blind)
#744563
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #792ba1; /* rgb */ color: rgb(121, 43, 161); /* oklch */ color: oklch(46.1% 0.185 311.5);
Tailwind
colors: {
custom: {
50: '#a46cbd',
500: '#792ba1',
950: '#000000',
},
}SCSS
$custom: #792ba1; $custom-light: #a46cbd; $custom-dark: #000000;
JSON
{
"hex": "#792ba1",
"rgb": {
"r": 121,
"g": 43,
"b": 161
},
"hsl": {
"h": 279.661,
"s": 57.843,
"l": 40
},
"oklch": {
"l": 0.46073,
"c": 0.18456,
"h": 311.5
},
"luminance": 0.08366
}Semantic roles & 50–950 ramp
primary
#792BA1
secondary
#86BF69
accent
#E1477B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81