#795EF6#795EF6
#795EF6 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.3% C 0.217 H 285.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #795EF6 |
|---|---|
| RGB | rgb(121, 94, 246) |
| HSL | hsl(251, 89%, 67%) |
| HSV | hsv(251, 62%, 96%) |
| CMYK | cmyk(50.8%, 61.8%, 0%, 3.5%) |
| CIE-LAB | lab(50.36, 48.69, -72.78) |
| CIE-LCH | lch(50.36, 87.57, 303.78°) |
| OKLab | oklab(59.26% 0.0593 -0.2086) |
| OKLCH | oklch(59.26% 0.217 285.9) |
| XYZ | xyz(28.5175, 18.7227, 89.2821) |
| Luminance | 0.1872 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.87
Purpley
#8756E4
ΔE00 4.20
Light Indigo
#6D5ACF
ΔE00 6.01
Dark Periwinkle
#665FD1
ΔE00 6.09
Slate Blue
#6A5ACD
ΔE00 6.46
Lighter Purple
#A55AF4
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795EF6 #DBF65E
analogous
#5E8FF6 #795EF6 #C55EF6
triadic
#795EF6 #F6795E #5EF679
tetradic
#795EF6 #F65E8F #DBF65E #5EF6C5
square
#795EF6 #F65E8F #DBF65E #5EF6C5
split-complementary
#795EF6 #F6C55E #8FF65E
monochromatic
#2E0CCE #4924F3 #795EF6 #A998F9 #D9D2FC
Accessibility & contrast
On white
4.43
#795EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#795EF6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #795EF6
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795EF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##795EF6 | 1.00 | 4.43 | 4.74 | 4.74 |
| #FFFFFF | 4.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CFB
Deuteranopia (green-blind)
#0073F3
Tritanopia (blue-blind)
#4983A1
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #795ef6; /* rgb */ color: rgb(121, 94, 246); /* oklch */ color: oklch(59.3% 0.217 285.9);
Tailwind
colors: {
custom: {
50: '#a98dfa',
500: '#795ef6',
950: '#000000',
},
}SCSS
$custom: #795ef6; $custom-light: #a98dfa; $custom-dark: #000000;
JSON
{
"hex": "#795ef6",
"rgb": {
"r": 121,
"g": 94,
"b": 246
},
"hsl": {
"h": 250.658,
"s": 89.412,
"l": 66.667
},
"oklch": {
"l": 0.59264,
"c": 0.2169,
"h": 285.9
},
"luminance": 0.18724
}Semantic roles & 50–950 ramp
primary
#795EF6
secondary
#E8F0BF
accent
#E600BD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85