#795DC2#795DC2
#795DC2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.5% C 0.152 H 293.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #795DC2 |
|---|---|
| RGB | rgb(121, 93, 194) |
| HSL | hsl(257, 45%, 56%) |
| HSV | hsv(257, 52%, 76%) |
| CMYK | cmyk(37.6%, 52.1%, 0%, 23.9%) |
| CIE-LAB | lab(46.70, 34.58, -49.17) |
| CIE-LCH | lch(46.70, 60.11, 305.11°) |
| OKLab | oklab(55.47% 0.0609 -0.1393) |
| OKLCH | oklch(55.47% 0.152 293.6) |
| XYZ | xyz(21.5346, 15.7882, 52.9413) |
| Luminance | 0.1579 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.48
Slate Blue
#6A5ACD
ΔE00 3.76
Iris
#6258C4
ΔE00 4.79
Dark Periwinkle
#665FD1
ΔE00 4.85
Deep Lavender
#8D5EB7
ΔE00 5.43
Royal Purple
#7851A9
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795DC2 #A6C25D
analogous
#5D74C2 #795DC2 #AC5DC2
triadic
#795DC2 #C2795D #5DC279
tetradic
#795DC2 #C25D74 #A6C25D #5DC2AC
square
#795DC2 #C25D74 #A6C25D #5DC2AC
split-complementary
#795DC2 #C2AC5D #74C25D
monochromatic
#422D78 #5A3EA4 #795DC2 #9E89D3 #C3B6E3
Accessibility & contrast
On white
5.05
#795DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.16
#795DC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795DC2
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795DC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795DC2 | 1.00 | 5.05 | 4.16 | 5.05 |
| #FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3470C6
Deuteranopia (green-blind)
#396DC0
Tritanopia (blue-blind)
#677187
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #795dc2; /* rgb */ color: rgb(121, 93, 194); /* oklch */ color: oklch(55.5% 0.152 293.6);
Tailwind
colors: {
custom: {
50: '#a38bd5',
500: '#795dc2',
950: '#000000',
},
}SCSS
$custom: #795dc2; $custom-light: #a38bd5; $custom-dark: #000000;
JSON
{
"hex": "#795dc2",
"rgb": {
"r": 121,
"g": 93,
"b": 194
},
"hsl": {
"h": 256.634,
"s": 45.291,
"l": 56.275
},
"oklch": {
"l": 0.5547,
"c": 0.15198,
"h": 293.6
},
"luminance": 0.15789
}Semantic roles & 50–950 ramp
primary
#795DC2
secondary
#C7D2A9
accent
#D553B1
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83