#794FB2#794FB2
#794FB2 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.1% C 0.153 H 300.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #794FB2 |
|---|---|
| RGB | rgb(121, 79, 178) |
| HSL | hsl(265, 39%, 50%) |
| HSV | hsv(265, 56%, 70%) |
| CMYK | cmyk(32%, 55.6%, 0%, 30.2%) |
| CIE-LAB | lab(42.57, 38.43, -46.44) |
| CIE-LCH | lch(42.57, 60.28, 309.61°) |
| OKLab | oklab(52.1% 0.0783 -0.1312) |
| OKLCH | oklch(52.1% 0.153 300.8) |
| XYZ | xyz(18.7151, 12.8712, 43.6093) |
| Luminance | 0.1287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 1.79
Deep Lavender
#8D5EB7
ΔE00 6.10
Light Indigo
#6D5ACF
ΔE00 6.65
Slate Blue
#6A5ACD
ΔE00 6.77
Iris
#6258C4
ΔE00 6.80
Bluey Purple
#6241C7
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#794FB2 #88B24F
analogous
#4F56B2 #794FB2 #AB4FB2
triadic
#794FB2 #B2794F #4FB279
tetradic
#794FB2 #B24F56 #88B24F #4FB2AB
square
#794FB2 #B24F56 #88B24F #4FB2AB
split-complementary
#794FB2 #B2AB4F #56B24F
monochromatic
#3F295E #5C3C88 #794FB2 #997AC5 #BAA4D7
Accessibility & contrast
On white
5.88
#794FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#794FB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #794FB2
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##794FB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##794FB2 | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#3564B0
Tritanopia (blue-blind)
#6E6379
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #794fb2; /* rgb */ color: rgb(121, 79, 178); /* oklch */ color: oklch(52.1% 0.153 300.8);
Tailwind
colors: {
custom: {
50: '#a382c9',
500: '#794fb2',
950: '#000000',
},
}SCSS
$custom: #794fb2; $custom-light: #a382c9; $custom-dark: #000000;
JSON
{
"hex": "#794fb2",
"rgb": {
"r": 121,
"g": 79,
"b": 178
},
"hsl": {
"h": 265.455,
"s": 39.13,
"l": 50.392
},
"oklch": {
"l": 0.52104,
"c": 0.15281,
"h": 300.8
},
"luminance": 0.12871
}Semantic roles & 50–950 ramp
primary
#794FB2
secondary
#B2C498
accent
#CF599D
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82