#792CA1#792CA1
#792CA1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.183 H 311.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #792CA1 |
|---|---|
| RGB | rgb(121, 44, 161) |
| HSL | hsl(279, 57%, 40%) |
| HSV | hsv(279, 73%, 63%) |
| CMYK | cmyk(24.8%, 72.7%, 0%, 36.9%) |
| CIE-LAB | lab(34.88, 52.18, -48.67) |
| CIE-LCH | lch(34.88, 71.36, 316.99°) |
| OKLab | oklab(46.18% 0.1212 -0.1376) |
| OKLCH | oklch(46.18% 0.183 311.4) |
| XYZ | xyz(15.2177, 8.4399, 34.5387) |
| Luminance | 0.0844 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.35
Rebeccapurple
#663399
ΔE00 3.77
Darkmagenta
#8B008B
ΔE00 6.80
Purple
#800080
ΔE00 7.64
Darkviolet
#9400D3
ΔE00 7.67
Purply
#983FB2
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#792CA1 #54A12C
analogous
#3E2CA1 #792CA1 #A12C8E
triadic
#792CA1 #A1792C #2CA179
tetradic
#792CA1 #A13E2C #54A12C #2C8EA1
square
#792CA1 #A13E2C #54A12C #2C8EA1
split-complementary
#792CA1 #8EA12C #2CA13E
monochromatic
#311241 #551F71 #792CA1 #9B40CB #B470D8
Accessibility & contrast
On white
7.81
#792CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#792CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #792CA1
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##792CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##792CA1 | 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)
#004EA4
Deuteranopia (green-blind)
#1B539E
Tritanopia (blue-blind)
#744664
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #792ca1; /* rgb */ color: rgb(121, 44, 161); /* oklch */ color: oklch(46.2% 0.183 311.4);
Tailwind
colors: {
custom: {
50: '#a46cbd',
500: '#792ca1',
950: '#000000',
},
}SCSS
$custom: #792ca1; $custom-light: #a46cbd; $custom-dark: #000000;
JSON
{
"hex": "#792ca1",
"rgb": {
"r": 121,
"g": 44,
"b": 161
},
"hsl": {
"h": 279.487,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.46179,
"c": 0.18336,
"h": 311.4
},
"luminance": 0.0844
}Semantic roles & 50–950 ramp
primary
#792CA1
secondary
#87BF6A
accent
#E0477C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81