#793FB5#793FB5
#793FB5 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.180 H 303.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).
Color values
| HEX | #793FB5 |
|---|---|
| RGB | rgb(121, 63, 181) |
| HSL | hsl(269, 48%, 48%) |
| HSV | hsv(269, 65%, 71%) |
| CMYK | cmyk(33.1%, 65.2%, 0%, 29%) |
| CIE-LAB | lab(39.51, 47.89, -53.13) |
| CIE-LCH | lch(39.51, 71.53, 312.03°) |
| OKLab | oklab(49.93% 0.0979 -0.1509) |
| OKLCH | oklch(49.93% 0.18 303) |
| XYZ | xyz(18.0012, 10.9562, 44.8735) |
| Luminance | 0.1096 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.25
Bluey Purple
#6241C7
ΔE00 5.35
Rebeccapurple
#663399
ΔE00 5.85
Darkorchid
#9932CC
ΔE00 6.09
Purply
#983FB2
ΔE00 6.45
Blueviolet
#8A2BE2
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#793FB5 #7BB53F
analogous
#3F40B5 #793FB5 #B43FB5
triadic
#793FB5 #B5793F #3FB579
tetradic
#793FB5 #B53F40 #7BB53F #3FB5B4
square
#793FB5 #B53F40 #7BB53F #3FB5B4
split-complementary
#793FB5 #B5B43F #40B53F
monochromatic
#3C1F5A #5B2F88 #793FB5 #9867CA #B794DA
Accessibility & contrast
On white
6.58
#793FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#793FB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #793FB5
6.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##793FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##793FB5 | 1.00 | 6.58 | 3.19 | 6.58 |
| #FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#155DB2
Tritanopia (blue-blind)
#6D5974
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #793fb5; /* rgb */ color: rgb(121, 63, 181); /* oklch */ color: oklch(49.9% 0.180 303.0);
Tailwind
colors: {
custom: {
50: '#a478cc',
500: '#793fb5',
950: '#000000',
},
}SCSS
$custom: #793fb5; $custom-light: #a478cc; $custom-dark: #000000;
JSON
{
"hex": "#793fb5",
"rgb": {
"r": 121,
"g": 63,
"b": 181
},
"hsl": {
"h": 269.492,
"s": 48.361,
"l": 47.843
},
"oklch": {
"l": 0.49934,
"c": 0.17986,
"h": 303
},
"luminance": 0.10956
}Semantic roles & 50–950 ramp
primary
#793FB5
secondary
#A8C58A
accent
#D85095
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82