#795BAB#795BAB
#795BAB is a mid, vivid violet. Relative luminance 0.145; OKLCH L 53.7% C 0.124 H 299.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #795BAB |
|---|---|
| RGB | rgb(121, 91, 171) |
| HSL | hsl(263, 32%, 51%) |
| HSV | hsv(263, 47%, 67%) |
| CMYK | cmyk(29.2%, 46.8%, 0%, 32.9%) |
| CIE-LAB | lab(44.92, 29.62, -38.58) |
| CIE-LCH | lch(44.92, 48.64, 307.52°) |
| OKLab | oklab(53.73% 0.0613 -0.1083) |
| OKLCH | oklch(53.73% 0.124 299.5) |
| XYZ | xyz(18.9752, 14.4873, 40.3168) |
| Luminance | 0.1449 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.09
Deep Lavender
#8D5EB7
ΔE00 4.54
Light Indigo
#6D5ACF
ΔE00 7.24
Slate Blue
#6A5ACD
ΔE00 7.30
Iris
#6258C4
ΔE00 7.32
Amethyst
#9B5FC0
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795BAB #8DAB5B
analogous
#5B65AB #795BAB #A15BAB
triadic
#795BAB #AB795B #5BAB79
tetradic
#795BAB #AB5B65 #8DAB5B #5BABA1
square
#795BAB #AB5B65 #8DAB5B #5BABA1
split-complementary
#795BAB #ABA15B #65AB5B
monochromatic
#402F5C #5C4485 #795BAB #9A83C0 #BBACD4
Accessibility & contrast
On white
5.39
#795BAB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#795BAB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795BAB
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795BAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795BAB | 1.00 | 5.39 | 3.90 | 5.39 |
| #FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#436AAE
Deuteranopia (green-blind)
#496AA9
Tritanopia (blue-blind)
#6F697B
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #795bab; /* rgb */ color: rgb(121, 91, 171); /* oklch */ color: oklch(53.7% 0.124 299.5);
Tailwind
colors: {
custom: {
50: '#a28ac4',
500: '#795bab',
950: '#000000',
},
}SCSS
$custom: #795bab; $custom-light: #a28ac4; $custom-dark: #000000;
JSON
{
"hex": "#795bab",
"rgb": {
"r": 121,
"g": 91,
"b": 171
},
"hsl": {
"h": 262.5,
"s": 32.258,
"l": 51.373
},
"oklch": {
"l": 0.53726,
"c": 0.1244,
"h": 299.5
},
"luminance": 0.14487
}Semantic roles & 50–950 ramp
primary
#795BAB
secondary
#B5C39F
accent
#C85FA1
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82