#795AB2#795AB2
#795AB2 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.0% C 0.135 H 298.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #795AB2 |
|---|---|
| RGB | rgb(121, 90, 178) |
| HSL | hsl(261, 36%, 53%) |
| HSV | hsv(261, 49%, 70%) |
| CMYK | cmyk(32%, 49.4%, 0%, 30.2%) |
| CIE-LAB | lab(45.07, 32.04, -42.45) |
| CIE-LCH | lch(45.07, 53.19, 307.05°) |
| OKLab | oklab(53.96% 0.0635 -0.1196) |
| OKLCH | oklch(53.96% 0.135 298) |
| XYZ | xyz(19.5753, 14.5914, 43.8960) |
| Luminance | 0.1459 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.06
Deep Lavender
#8D5EB7
ΔE00 4.52
Light Indigo
#6D5ACF
ΔE00 5.90
Slate Blue
#6A5ACD
ΔE00 6.01
Iris
#6258C4
ΔE00 6.22
Dark Periwinkle
#665FD1
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795AB2 #93B25A
analogous
#5A67B2 #795AB2 #A55AB2
triadic
#795AB2 #B2795A #5AB279
tetradic
#795AB2 #B25A67 #93B25A #5AB2A5
square
#795AB2 #B25A67 #93B25A #5AB2A5
split-complementary
#795AB2 #B2A55A #67B25A
monochromatic
#412E63 #5C428D #795AB2 #9B84C5 #BDADD9
Accessibility & contrast
On white
5.36
#795AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#795AB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795AB2
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795AB2 | 1.00 | 5.36 | 3.92 | 5.36 |
| #FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C6BB5
Deuteranopia (green-blind)
#436AB0
Tritanopia (blue-blind)
#6D6B7E
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #795ab2; /* rgb */ color: rgb(121, 90, 178); /* oklch */ color: oklch(54.0% 0.135 298.0);
Tailwind
colors: {
custom: {
50: '#a289c9',
500: '#795ab2',
950: '#000000',
},
}SCSS
$custom: #795ab2; $custom-light: #a289c9; $custom-dark: #000000;
JSON
{
"hex": "#795ab2",
"rgb": {
"r": 121,
"g": 90,
"b": 178
},
"hsl": {
"h": 261.136,
"s": 36.364,
"l": 52.549
},
"oklch": {
"l": 0.5396,
"c": 0.1354,
"h": 298
},
"luminance": 0.14592
}Semantic roles & 50–950 ramp
primary
#795AB2
secondary
#BAC7A1
accent
#CC5BA5
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82