#795EF7#795EF7
#795EF7 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.3% C 0.218 H 285.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #795EF7 |
|---|---|
| RGB | rgb(121, 94, 247) |
| HSL | hsl(251, 91%, 67%) |
| HSV | hsv(251, 62%, 97%) |
| CMYK | cmyk(51%, 61.9%, 0%, 3.1%) |
| CIE-LAB | lab(50.43, 48.98, -73.22) |
| CIE-LCH | lch(50.43, 88.09, 303.78°) |
| OKLab | oklab(59.34% 0.0592 -0.2099) |
| OKLCH | oklch(59.34% 0.218 285.7) |
| XYZ | xyz(28.6714, 18.7843, 90.0926) |
| Luminance | 0.1879 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.89
Purpley
#8756E4
ΔE00 4.28
Light Indigo
#6D5ACF
ΔE00 6.13
Dark Periwinkle
#665FD1
ΔE00 6.20
Slate Blue
#6A5ACD
ΔE00 6.58
Lighter Purple
#A55AF4
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795EF7 #DCF75E
analogous
#5E90F7 #795EF7 #C55EF7
triadic
#795EF7 #F7795E #5EF779
tetradic
#795EF7 #F75E90 #DCF75E #5EF7C5
square
#795EF7 #F75E90 #DCF75E #5EF7C5
split-complementary
#795EF7 #F7C55E #90F75E
monochromatic
#2D0AD0 #4824F4 #795EF7 #AA98FA #DAD3FD
Accessibility & contrast
On white
4.41
#795EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#795EF7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #795EF7
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795EF7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##795EF7 | 1.00 | 4.41 | 4.76 | 4.76 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CFC
Deuteranopia (green-blind)
#0073F4
Tritanopia (blue-blind)
#4883A2
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #795ef7; /* rgb */ color: rgb(121, 94, 247); /* oklch */ color: oklch(59.3% 0.218 285.7);
Tailwind
colors: {
custom: {
50: '#a98dfb',
500: '#795ef7',
950: '#000000',
},
}SCSS
$custom: #795ef7; $custom-light: #a98dfb; $custom-dark: #000000;
JSON
{
"hex": "#795ef7",
"rgb": {
"r": 121,
"g": 94,
"b": 247
},
"hsl": {
"h": 250.588,
"s": 90.533,
"l": 66.863
},
"oklch": {
"l": 0.5934,
"c": 0.21812,
"h": 285.7
},
"luminance": 0.18786
}Semantic roles & 50–950 ramp
primary
#795EF7
secondary
#E8F1C0
accent
#E600BD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86