#794FAB#794FAB
#794FAB is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.7% C 0.144 H 302.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #794FAB |
|---|---|
| RGB | rgb(121, 79, 171) |
| HSL | hsl(267, 37%, 49%) |
| HSV | hsv(267, 54%, 67%) |
| CMYK | cmyk(29.2%, 53.8%, 0%, 32.9%) |
| CIE-LAB | lab(42.15, 36.65, -42.98) |
| CIE-LCH | lch(42.15, 56.48, 310.45°) |
| OKLab | oklab(51.66% 0.0779 -0.1211) |
| OKLCH | oklch(51.66% 0.144 302.8) |
| XYZ | xyz(18.0302, 12.5972, 40.0018) |
| Luminance | 0.1260 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 0.74
Deep Lavender
#8D5EB7
ΔE00 6.08
Purply
#983FB2
ΔE00 6.92
Iris
#6258C4
ΔE00 7.69
Light Indigo
#6D5ACF
ΔE00 7.73
Bluey Purple
#6241C7
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#794FAB #81AB4F
analogous
#4F53AB #794FAB #A74FAB
triadic
#794FAB #AB794F #4FAB79
tetradic
#794FAB #AB4F53 #81AB4F #4FABA7
square
#794FAB #AB4F53 #81AB4F #4FABA7
split-complementary
#794FAB #ABA74F #53AB4F
monochromatic
#3E2857 #5B3C81 #794FAB #9877C0 #B8A1D4
Accessibility & contrast
On white
5.97
#794FAB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#794FAB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #794FAB
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##794FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##794FAB | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#3C63A9
Tritanopia (blue-blind)
#706075
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #794fab; /* rgb */ color: rgb(121, 79, 171); /* oklch */ color: oklch(51.7% 0.144 302.8);
Tailwind
colors: {
custom: {
50: '#a282c4',
500: '#794fab',
950: '#000000',
},
}SCSS
$custom: #794fab; $custom-light: #a282c4; $custom-dark: #000000;
JSON
{
"hex": "#794fab",
"rgb": {
"r": 121,
"g": 79,
"b": 171
},
"hsl": {
"h": 267.391,
"s": 36.8,
"l": 49.02
},
"oklch": {
"l": 0.5166,
"c": 0.14401,
"h": 302.8
},
"luminance": 0.12597
}Semantic roles & 50–950 ramp
primary
#794FAB
secondary
#ADC195
accent
#CD5B99
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82