#795DC4#795DC4
#795DC4 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.6% C 0.155 H 293.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #795DC4 |
|---|---|
| RGB | rgb(121, 93, 196) |
| HSL | hsl(256, 47%, 57%) |
| HSV | hsv(256, 53%, 77%) |
| CMYK | cmyk(38.3%, 52.6%, 0%, 23.1%) |
| CIE-LAB | lab(46.81, 35.12, -50.14) |
| CIE-LCH | lch(46.81, 61.22, 305.01°) |
| OKLab | oklab(55.6% 0.061 -0.1421) |
| OKLCH | oklch(55.6% 0.155 293.2) |
| XYZ | xyz(21.7607, 15.8787, 54.1322) |
| Luminance | 0.1588 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.23
Slate Blue
#6A5ACD
ΔE00 3.55
Dark Periwinkle
#665FD1
ΔE00 4.63
Iris
#6258C4
ΔE00 4.71
Purpley
#8756E4
ΔE00 5.42
Deep Lavender
#8D5EB7
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795DC4 #A8C45D
analogous
#5D75C4 #795DC4 #AD5DC4
triadic
#795DC4 #C4795D #5DC479
tetradic
#795DC4 #C45D75 #A8C45D #5DC4AD
square
#795DC4 #C45D75 #A8C45D #5DC4AD
split-complementary
#795DC4 #C4AD5D #75C45D
monochromatic
#422C7A #5A3DA7 #795DC4 #9E8AD4 #C3B7E5
Accessibility & contrast
On white
5.03
#795DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#795DC4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795DC4
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795DC4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795DC4 | 1.00 | 5.03 | 4.18 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3170C8
Deuteranopia (green-blind)
#376DC2
Tritanopia (blue-blind)
#667288
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #795dc4; /* rgb */ color: rgb(121, 93, 196); /* oklch */ color: oklch(55.6% 0.155 293.2);
Tailwind
colors: {
custom: {
50: '#a48bd6',
500: '#795dc4',
950: '#000000',
},
}SCSS
$custom: #795dc4; $custom-light: #a48bd6; $custom-dark: #000000;
JSON
{
"hex": "#795dc4",
"rgb": {
"r": 121,
"g": 93,
"b": 196
},
"hsl": {
"h": 256.311,
"s": 46.606,
"l": 56.667
},
"oklch": {
"l": 0.55598,
"c": 0.15463,
"h": 293.2
},
"luminance": 0.15879
}Semantic roles & 50–950 ramp
primary
#795DC4
secondary
#C8D3A9
accent
#D652B2
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83