#795FB5#795FB5
#795FB5 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.0% C 0.131 H 295.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #795FB5 |
|---|---|
| RGB | rgb(121, 95, 181) |
| HSL | hsl(258, 37%, 54%) |
| HSV | hsv(258, 48%, 71%) |
| CMYK | cmyk(33.1%, 47.5%, 0%, 29%) |
| CIE-LAB | lab(46.43, 29.88, -42.05) |
| CIE-LCH | lch(46.43, 51.59, 305.39°) |
| OKLab | oklab(55.03% 0.057 -0.1184) |
| OKLCH | oklch(55.03% 0.131 295.7) |
| XYZ | xyz(20.3158, 15.5853, 45.6450) |
| Luminance | 0.1559 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.58
Royal Purple
#7851A9
ΔE00 4.70
Light Indigo
#6D5ACF
ΔE00 5.63
Slate Blue
#6A5ACD
ΔE00 5.73
Iris
#6258C4
ΔE00 6.13
Dark Periwinkle
#665FD1
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795FB5 #9BB55F
analogous
#5F70B5 #795FB5 #A45FB5
triadic
#795FB5 #B5795F #5FB579
tetradic
#795FB5 #B55F70 #9BB55F #5FB5A4
square
#795FB5 #B55F70 #9BB55F #5FB5A4
split-complementary
#795FB5 #B5A45F #70B55F
monochromatic
#423169 #5C4493 #795FB5 #9C89C8 #BFB3DC
Accessibility & contrast
On white
5.10
#795FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#795FB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795FB5
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795FB5 | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#426FB8
Deuteranopia (green-blind)
#476DB3
Tritanopia (blue-blind)
#6C6F81
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #795fb5; /* rgb */ color: rgb(121, 95, 181); /* oklch */ color: oklch(55.0% 0.131 295.7);
Tailwind
colors: {
custom: {
50: '#a28dcb',
500: '#795fb5',
950: '#000000',
},
}SCSS
$custom: #795fb5; $custom-light: #a28dcb; $custom-dark: #000000;
JSON
{
"hex": "#795fb5",
"rgb": {
"r": 121,
"g": 95,
"b": 181
},
"hsl": {
"h": 258.14,
"s": 36.752,
"l": 54.118
},
"oklch": {
"l": 0.55028,
"c": 0.13142,
"h": 295.7
},
"luminance": 0.15586
}Semantic roles & 50–950 ramp
primary
#795FB5
secondary
#BFCAA6
accent
#CD5BAA
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82