#794FAC#794FAC
#794FAC is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.7% C 0.145 H 302.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #794FAC |
|---|---|
| RGB | rgb(121, 79, 172) |
| HSL | hsl(267, 37%, 49%) |
| HSV | hsv(267, 54%, 67%) |
| CMYK | cmyk(29.7%, 54.1%, 0%, 32.5%) |
| CIE-LAB | lab(42.21, 36.90, -43.48) |
| CIE-LCH | lch(42.21, 57.03, 310.32°) |
| OKLab | oklab(51.72% 0.078 -0.1226) |
| OKLCH | oklch(51.72% 0.145 302.5) |
| XYZ | xyz(18.1258, 12.6355, 40.5057) |
| Luminance | 0.1263 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 0.86
Deep Lavender
#8D5EB7
ΔE00 6.07
Purply
#983FB2
ΔE00 6.93
Iris
#6258C4
ΔE00 7.55
Light Indigo
#6D5ACF
ΔE00 7.57
Bluey Purple
#6241C7
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#794FAC #82AC4F
analogous
#4F53AC #794FAC #A84FAC
triadic
#794FAC #AC794F #4FAC79
tetradic
#794FAC #AC4F53 #82AC4F #4FACA8
square
#794FAC #AC4F53 #82AC4F #4FACA8
split-complementary
#794FAC #ACA84F #53AC4F
monochromatic
#3E2858 #5B3C82 #794FAC #9977C1 #B8A1D4
Accessibility & contrast
On white
5.95
#794FAC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#794FAC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #794FAC
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##794FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##794FAC | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E63AF
Deuteranopia (green-blind)
#3B63AA
Tritanopia (blue-blind)
#6F6176
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #794fac; /* rgb */ color: rgb(121, 79, 172); /* oklch */ color: oklch(51.7% 0.145 302.5);
Tailwind
colors: {
custom: {
50: '#a282c5',
500: '#794fac',
950: '#000000',
},
}SCSS
$custom: #794fac; $custom-light: #a282c5; $custom-dark: #000000;
JSON
{
"hex": "#794fac",
"rgb": {
"r": 121,
"g": 79,
"b": 172
},
"hsl": {
"h": 267.097,
"s": 37.052,
"l": 49.216
},
"oklch": {
"l": 0.51723,
"c": 0.14527,
"h": 302.5
},
"luminance": 0.12635
}Semantic roles & 50–950 ramp
primary
#794FAC
secondary
#ADC196
accent
#CD5B99
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82