#795EBA#795EBA
#795EBA is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.1% C 0.140 H 294.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #795EBA |
|---|---|
| RGB | rgb(121, 94, 186) |
| HSL | hsl(258, 40%, 55%) |
| HSV | hsv(258, 49%, 73%) |
| CMYK | cmyk(34.9%, 49.5%, 0%, 27.1%) |
| CIE-LAB | lab(46.47, 31.81, -44.90) |
| CIE-LCH | lch(46.47, 55.03, 305.32°) |
| OKLab | oklab(55.15% 0.0589 -0.1267) |
| OKLCH | oklch(55.15% 0.14 294.9) |
| XYZ | xyz(20.7485, 15.6152, 48.3657) |
| Luminance | 0.1562 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 4.71
Deep Lavender
#8D5EB7
ΔE00 4.79
Royal Purple
#7851A9
ΔE00 4.86
Slate Blue
#6A5ACD
ΔE00 4.86
Iris
#6258C4
ΔE00 5.47
Dark Periwinkle
#665FD1
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795EBA #9FBA5E
analogous
#5E71BA #795EBA #A75EBA
triadic
#795EBA #BA795E #5EBA79
tetradic
#795EBA #BA5E71 #9FBA5E #5EBAA7
square
#795EBA #BA5E71 #9FBA5E #5EBAA7
split-complementary
#795EBA #BAA75E #71BA5E
monochromatic
#422F6E #5B4299 #795EBA #9D89CC #C0B4DF
Accessibility & contrast
On white
5.09
#795EBA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#795EBA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795EBA
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795EBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795EBA | 1.00 | 5.09 | 4.12 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D6FBD
Deuteranopia (green-blind)
#426DB8
Tritanopia (blue-blind)
#6A7083
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #795eba; /* rgb */ color: rgb(121, 94, 186); /* oklch */ color: oklch(55.1% 0.140 294.9);
Tailwind
colors: {
custom: {
50: '#a38ccf',
500: '#795eba',
950: '#000000',
},
}SCSS
$custom: #795eba; $custom-light: #a38ccf; $custom-dark: #000000;
JSON
{
"hex": "#795eba",
"rgb": {
"r": 121,
"g": 94,
"b": 186
},
"hsl": {
"h": 257.609,
"s": 40,
"l": 54.902
},
"oklch": {
"l": 0.55149,
"c": 0.13977,
"h": 294.9
},
"luminance": 0.15616
}Semantic roles & 50–950 ramp
primary
#795EBA
secondary
#C2CDA7
accent
#D058AD
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82