#791AB3#791AB3
#791AB3 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.1% C 0.217 H 307.3°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).
Color values
| HEX | #791AB3 |
|---|---|
| RGB | rgb(121, 26, 179) |
| HSL | hsl(277, 75%, 40%) |
| HSV | hsv(277, 85%, 70%) |
| CMYK | cmyk(32.4%, 85.5%, 0%, 29.8%) |
| CIE-LAB | lab(34.10, 62.33, -60.72) |
| CIE-LCH | lch(34.10, 87.02, 315.75°) |
| OKLab | oklab(46.07% 0.1317 -0.1729) |
| OKLCH | oklch(46.07% 0.217 307.3) |
| XYZ | xyz(16.3895, 8.0586, 43.3311) |
| Luminance | 0.0806 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.07
Darkviolet
#9400D3
ΔE00 5.67
Rebeccapurple
#663399
ΔE00 5.68
Purple Blue
#5D21D0
ΔE00 6.14
Violet Blue
#510AC9
ΔE00 7.11
Blueviolet
#8A2BE2
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#791AB3 #54B31A
analogous
#2D1AB3 #791AB3 #B31AA0
triadic
#791AB3 #B3791A #1AB379
tetradic
#791AB3 #B32D1A #54B31A #1AA0B3
square
#791AB3 #B32D1A #54B31A #1AA0B3
split-complementary
#791AB3 #A0B31A #1AB32D
monochromatic
#310A48 #55127E #791AB3 #9B2AE0 #B460E8
Accessibility & contrast
On white
8.04
#791AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#791AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #791AB3
8.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##791AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##791AB3 | 1.00 | 8.04 | 2.61 | 8.04 |
| #FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#6F466A
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #791ab3; /* rgb */ color: rgb(121, 26, 179); /* oklch */ color: oklch(46.1% 0.217 307.3);
Tailwind
colors: {
custom: {
50: '#a666cb',
500: '#791ab3',
950: '#000000',
},
}SCSS
$custom: #791ab3; $custom-light: #a666cb; $custom-dark: #000000;
JSON
{
"hex": "#791ab3",
"rgb": {
"r": 121,
"g": 26,
"b": 179
},
"hsl": {
"h": 277.255,
"s": 74.634,
"l": 40.196
},
"oklch": {
"l": 0.46068,
"c": 0.21736,
"h": 307.3
},
"luminance": 0.08058
}Semantic roles & 50–950 ramp
primary
#791AB3
secondary
#87CC5D
accent
#F1377D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82