#795CB3#795CB3
#795CB3 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.4% C 0.134 H 297.1°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #795CB3 |
|---|---|
| RGB | rgb(121, 92, 179) |
| HSL | hsl(260, 36%, 53%) |
| HSV | hsv(260, 49%, 70%) |
| CMYK | cmyk(32.4%, 48.6%, 0%, 29.8%) |
| CIE-LAB | lab(45.60, 31.13, -42.20) |
| CIE-LCH | lch(45.60, 52.44, 306.41°) |
| OKLab | oklab(54.37% 0.0609 -0.1188) |
| OKLCH | oklch(54.37% 0.134 297.1) |
| XYZ | xyz(19.8470, 14.9737, 44.4837) |
| Luminance | 0.1497 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.69
Deep Lavender
#8D5EB7
ΔE00 4.47
Light Indigo
#6D5ACF
ΔE00 5.78
Slate Blue
#6A5ACD
ΔE00 5.88
Iris
#6258C4
ΔE00 6.16
Dark Periwinkle
#665FD1
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795CB3 #96B35C
analogous
#5C6AB3 #795CB3 #A45CB3
triadic
#795CB3 #B3795C #5CB379
tetradic
#795CB3 #B35C6A #96B35C #5CB3A4
square
#795CB3 #B35C6A #96B35C #5CB3A4
split-complementary
#795CB3 #B3A45C #6AB35C
monochromatic
#412F65 #5C438F #795CB3 #9B86C6 #BEAFDA
Accessibility & contrast
On white
5.26
#795CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#795CB3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795CB3
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795CB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795CB3 | 1.00 | 5.26 | 3.99 | 5.26 |
| #FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F6CB6
Deuteranopia (green-blind)
#456BB1
Tritanopia (blue-blind)
#6C6C7F
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #795cb3; /* rgb */ color: rgb(121, 92, 179); /* oklch */ color: oklch(54.4% 0.134 297.1);
Tailwind
colors: {
custom: {
50: '#a28bca',
500: '#795cb3',
950: '#000000',
},
}SCSS
$custom: #795cb3; $custom-light: #a28bca; $custom-dark: #000000;
JSON
{
"hex": "#795cb3",
"rgb": {
"r": 121,
"g": 92,
"b": 179
},
"hsl": {
"h": 260,
"s": 36.402,
"l": 53.137
},
"oklch": {
"l": 0.54373,
"c": 0.13352,
"h": 297.1
},
"luminance": 0.14974
}Semantic roles & 50–950 ramp
primary
#795CB3
secondary
#BCC8A3
accent
#CC5BA7
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82