#795ED6#795ED6
#795ED6 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.0% C 0.177 H 290.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #795ED6 |
|---|---|
| RGB | rgb(121, 94, 214) |
| HSL | hsl(254, 59%, 60%) |
| HSV | hsv(254, 56%, 84%) |
| CMYK | cmyk(43.5%, 56.1%, 0%, 16.1%) |
| CIE-LAB | lab(48.16, 39.55, -58.30) |
| CIE-LCH | lch(48.16, 70.45, 304.16°) |
| OKLab | oklab(56.96% 0.0604 -0.166) |
| OKLCH | oklch(56.96% 0.177 290) |
| XYZ | xyz(24.0221, 16.9246, 65.6064) |
| Luminance | 0.1693 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.65
Slate Blue
#6A5ACD
ΔE00 3.21
Purpley
#8756E4
ΔE00 3.64
Dark Periwinkle
#665FD1
ΔE00 3.68
Mediumslateblue
#7B68EE
ΔE00 4.76
Iris
#6258C4
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795ED6 #BBD65E
analogous
#5E7FD6 #795ED6 #B55ED6
triadic
#795ED6 #D6795E #5ED679
tetradic
#795ED6 #D65E7F #BBD65E #5ED6B5
square
#795ED6 #D65E7F #BBD65E #5ED6B5
split-complementary
#795ED6 #D6B55E #7FD65E
monochromatic
#3E2694 #5332C5 #795ED6 #A28FE2 #CAC0EF
Accessibility & contrast
On white
4.79
#795ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#795ED6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795ED6
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795ED6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795ED6 | 1.00 | 4.79 | 4.39 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1875DA
Deuteranopia (green-blind)
#1E70D3
Tritanopia (blue-blind)
#5E7891
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #795ed6; /* rgb */ color: rgb(121, 94, 214); /* oklch */ color: oklch(57.0% 0.177 290.0);
Tailwind
colors: {
custom: {
50: '#a58ce3',
500: '#795ed6',
950: '#000000',
},
}SCSS
$custom: #795ed6; $custom-light: #a58ce3; $custom-dark: #000000;
JSON
{
"hex": "#795ed6",
"rgb": {
"r": 121,
"g": 94,
"b": 214
},
"hsl": {
"h": 253.5,
"s": 59.406,
"l": 60.392
},
"oklch": {
"l": 0.56958,
"c": 0.17669,
"h": 290
},
"luminance": 0.16925
}Semantic roles & 50–950 ramp
primary
#795ED6
secondary
#D5DFB1
accent
#C71EA1
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84