#795AEC#795AEC
#795AEC is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 57.9% C 0.210 H 287.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #795AEC |
|---|---|
| RGB | rgb(121, 90, 236) |
| HSL | hsl(253, 79%, 64%) |
| HSV | hsv(253, 62%, 93%) |
| CMYK | cmyk(48.7%, 61.9%, 0%, 7.5%) |
| CIE-LAB | lab(48.80, 48.06, -69.72) |
| CIE-LCH | lch(48.80, 84.68, 304.58°) |
| OKLab | oklab(57.9% 0.064 -0.1996) |
| OKLCH | oklch(57.9% 0.21 287.8) |
| XYZ | xyz(26.6772, 17.4322, 81.2997) |
| Luminance | 0.1743 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.93
Mediumslateblue
#7B68EE
ΔE00 4.05
Light Indigo
#6D5ACF
ΔE00 4.54
Slate Blue
#6A5ACD
ΔE00 5.05
Dark Periwinkle
#665FD1
ΔE00 5.20
Iris
#6258C4
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795AEC #CDEC5A
analogous
#5A84EC #795AEC #C25AEC
triadic
#795AEC #EC795A #5AEC79
tetradic
#795AEC #EC5A84 #CDEC5A #5AECC2
square
#795AEC #EC5A84 #CDEC5A #5AECC2
split-complementary
#795AEC #ECC25A #84EC5A
monochromatic
#3715B7 #4C23E6 #795AEC #A691F2 #D2C8F9
Accessibility & contrast
On white
4.68
#795AEC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.49
#795AEC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795AEC
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795AEC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795AEC | 1.00 | 4.68 | 4.49 | 4.68 |
| #FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#0070E9
Tritanopia (blue-blind)
#517D9B
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #795aec; /* rgb */ color: rgb(121, 90, 236); /* oklch */ color: oklch(57.9% 0.210 287.8);
Tailwind
colors: {
custom: {
50: '#a88af3',
500: '#795aec',
950: '#000000',
},
}SCSS
$custom: #795aec; $custom-light: #a88af3; $custom-dark: #000000;
JSON
{
"hex": "#795aec",
"rgb": {
"r": 121,
"g": 90,
"b": 236
},
"hsl": {
"h": 252.74,
"s": 79.348,
"l": 63.922
},
"oklch": {
"l": 0.579,
"c": 0.20964,
"h": 287.8
},
"luminance": 0.17433
}Semantic roles & 50–950 ramp
primary
#795AEC
secondary
#E0EBB7
accent
#DC0AAF
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85