#795EF2#795EF2
#795EF2 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.0% C 0.212 H 286.3°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #795EF2 |
|---|---|
| RGB | rgb(121, 94, 242) |
| HSL | hsl(251, 85%, 66%) |
| HSV | hsv(251, 61%, 95%) |
| CMYK | cmyk(50%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(50.07, 47.54, -71.02) |
| CIE-LCH | lch(50.07, 85.46, 303.80°) |
| OKLab | oklab(58.96% 0.0595 -0.2035) |
| OKLCH | oklch(58.96% 0.212 286.3) |
| XYZ | xyz(27.9101, 18.4798, 86.0835) |
| Luminance | 0.1848 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.83
Purpley
#8756E4
ΔE00 3.89
Light Indigo
#6D5ACF
ΔE00 5.52
Dark Periwinkle
#665FD1
ΔE00 5.67
Slate Blue
#6A5ACD
ΔE00 5.98
Lighter Purple
#A55AF4
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795EF2 #D7F25E
analogous
#5E8DF2 #795EF2 #C35EF2
triadic
#795EF2 #F2795E #5EF279
tetradic
#795EF2 #F25E8D #D7F25E #5EF2C3
square
#795EF2 #F25E8D #D7F25E #5EF2C3
split-complementary
#795EF2 #F2C35E #8DF25E
monochromatic
#3110C6 #4A25ED #795EF2 #A897F7 #D7CFFB
Accessibility & contrast
On white
4.47
#795EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.70
#795EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #795EF2
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##795EF2 | 1.00 | 4.47 | 4.70 | 4.70 |
| #FFFFFF | 4.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#4C819F
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #795ef2; /* rgb */ color: rgb(121, 94, 242); /* oklch */ color: oklch(59.0% 0.212 286.3);
Tailwind
colors: {
custom: {
50: '#a98df7',
500: '#795ef2',
950: '#000000',
},
}SCSS
$custom: #795ef2; $custom-light: #a98df7; $custom-dark: #000000;
JSON
{
"hex": "#795ef2",
"rgb": {
"r": 121,
"g": 94,
"b": 242
},
"hsl": {
"h": 250.946,
"s": 85.057,
"l": 65.882
},
"oklch": {
"l": 0.58963,
"c": 0.21199,
"h": 286.3
},
"luminance": 0.18481
}Semantic roles & 50–950 ramp
primary
#795EF2
secondary
#E5EEBD
accent
#E204B9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85