#794FB1#794FB1
#794FB1 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.152 H 301.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #794FB1 |
|---|---|
| RGB | rgb(121, 79, 177) |
| HSL | hsl(266, 39%, 50%) |
| HSV | hsv(266, 55%, 69%) |
| CMYK | cmyk(31.6%, 55.4%, 0%, 30.6%) |
| CIE-LAB | lab(42.51, 38.18, -45.95) |
| CIE-LCH | lch(42.51, 59.74, 309.72°) |
| OKLab | oklab(52.04% 0.0782 -0.1298) |
| OKLCH | oklch(52.04% 0.152 301.1) |
| XYZ | xyz(18.6151, 12.8312, 43.0824) |
| Luminance | 0.1283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 1.63
Deep Lavender
#8D5EB7
ΔE00 6.08
Light Indigo
#6D5ACF
ΔE00 6.80
Slate Blue
#6A5ACD
ΔE00 6.91
Iris
#6258C4
ΔE00 6.92
Bluey Purple
#6241C7
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#794FB1 #87B14F
analogous
#4F56B1 #794FB1 #AA4FB1
triadic
#794FB1 #B1794F #4FB179
tetradic
#794FB1 #B14F56 #87B14F #4FB1AA
square
#794FB1 #B14F56 #87B14F #4FB1AA
split-complementary
#794FB1 #B1AA4F #56B14F
monochromatic
#3F295D #5C3C87 #794FB1 #9979C4 #BAA4D7
Accessibility & contrast
On white
5.89
#794FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#794FB1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #794FB1
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##794FB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##794FB1 | 1.00 | 5.89 | 3.57 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2864B4
Deuteranopia (green-blind)
#3664AF
Tritanopia (blue-blind)
#6E6278
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #794fb1; /* rgb */ color: rgb(121, 79, 177); /* oklch */ color: oklch(52.0% 0.152 301.1);
Tailwind
colors: {
custom: {
50: '#a382c9',
500: '#794fb1',
950: '#000000',
},
}SCSS
$custom: #794fb1; $custom-light: #a382c9; $custom-dark: #000000;
JSON
{
"hex": "#794fb1",
"rgb": {
"r": 121,
"g": 79,
"b": 177
},
"hsl": {
"h": 265.714,
"s": 38.583,
"l": 50.196
},
"oklch": {
"l": 0.5204,
"c": 0.15156,
"h": 301.1
},
"luminance": 0.12831
}Semantic roles & 50–950 ramp
primary
#794FB1
secondary
#B1C498
accent
#CF599C
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82