#795CB2#795CB2
#795CB2 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.3% C 0.132 H 297.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #795CB2 |
|---|---|
| RGB | rgb(121, 92, 178) |
| HSL | hsl(260, 36%, 53%) |
| HSV | hsv(260, 48%, 70%) |
| CMYK | cmyk(32%, 48.3%, 0%, 30.2%) |
| CIE-LAB | lab(45.54, 30.86, -41.70) |
| CIE-LCH | lch(45.54, 51.88, 306.50°) |
| OKLab | oklab(54.31% 0.0608 -0.1174) |
| OKLCH | oklch(54.31% 0.132 297.4) |
| XYZ | xyz(19.7462, 14.9334, 43.9529) |
| Luminance | 0.1493 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.62
Deep Lavender
#8D5EB7
ΔE00 4.45
Light Indigo
#6D5ACF
ΔE00 5.96
Slate Blue
#6A5ACD
ΔE00 6.05
Iris
#6258C4
ΔE00 6.30
Dark Periwinkle
#665FD1
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795CB2 #95B25C
analogous
#5C6AB2 #795CB2 #A45CB2
triadic
#795CB2 #B2795C #5CB279
tetradic
#795CB2 #B25C6A #95B25C #5CB2A4
square
#795CB2 #B25C6A #95B25C #5CB2A4
split-complementary
#795CB2 #B2A45C #6AB25C
monochromatic
#412F64 #5C438E #795CB2 #9B86C6 #BDAFD9
Accessibility & contrast
On white
5.27
#795CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#795CB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795CB2
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795CB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795CB2 | 1.00 | 5.27 | 3.99 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#466BB0
Tritanopia (blue-blind)
#6D6C7E
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #795cb2; /* rgb */ color: rgb(121, 92, 178); /* oklch */ color: oklch(54.3% 0.132 297.4);
Tailwind
colors: {
custom: {
50: '#a28bc9',
500: '#795cb2',
950: '#000000',
},
}SCSS
$custom: #795cb2; $custom-light: #a28bc9; $custom-dark: #000000;
JSON
{
"hex": "#795cb2",
"rgb": {
"r": 121,
"g": 92,
"b": 178
},
"hsl": {
"h": 260.233,
"s": 35.833,
"l": 52.941
},
"oklch": {
"l": 0.54313,
"c": 0.13218,
"h": 297.4
},
"luminance": 0.14934
}Semantic roles & 50–950 ramp
primary
#795CB2
secondary
#BBC7A2
accent
#CC5CA6
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82