#795FC2#795FC2
#795FC2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.8% C 0.149 H 293.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #795FC2 |
|---|---|
| RGB | rgb(121, 95, 194) |
| HSL | hsl(256, 45%, 57%) |
| HSV | hsv(256, 51%, 76%) |
| CMYK | cmyk(37.6%, 51%, 0%, 23.9%) |
| CIE-LAB | lab(47.16, 33.40, -48.43) |
| CIE-LCH | lch(47.16, 58.83, 304.59°) |
| OKLab | oklab(55.82% 0.0583 -0.1371) |
| OKLCH | oklch(55.82% 0.149 293.1) |
| XYZ | xyz(21.7124, 16.1439, 53.0006) |
| Luminance | 0.1614 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.66
Slate Blue
#6A5ACD
ΔE00 3.92
Dark Periwinkle
#665FD1
ΔE00 4.77
Iris
#6258C4
ΔE00 4.97
Deep Lavender
#8D5EB7
ΔE00 5.46
Purpley
#8756E4
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795FC2 #A8C25F
analogous
#5F77C2 #795FC2 #AB5FC2
triadic
#795FC2 #C2795F #5FC279
tetradic
#795FC2 #C25F77 #A8C25F #5FC2AB
square
#795FC2 #C25F77 #A8C25F #5FC2AB
split-complementary
#795FC2 #C2AB5F #77C25F
monochromatic
#422E79 #5A3FA5 #795FC2 #9E8BD3 #C3B8E4
Accessibility & contrast
On white
4.97
#795FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#795FC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795FC2
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795FC2 | 1.00 | 4.97 | 4.23 | 4.97 |
| #FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3871C5
Deuteranopia (green-blind)
#3C6EC0
Tritanopia (blue-blind)
#677387
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #795fc2; /* rgb */ color: rgb(121, 95, 194); /* oklch */ color: oklch(55.8% 0.149 293.1);
Tailwind
colors: {
custom: {
50: '#a38dd5',
500: '#795fc2',
950: '#000000',
},
}SCSS
$custom: #795fc2; $custom-light: #a38dd5; $custom-dark: #000000;
JSON
{
"hex": "#795fc2",
"rgb": {
"r": 121,
"g": 95,
"b": 194
},
"hsl": {
"h": 255.758,
"s": 44.796,
"l": 56.667
},
"oklch": {
"l": 0.55819,
"c": 0.14896,
"h": 293.1
},
"luminance": 0.16144
}Semantic roles & 50–950 ramp
primary
#795FC2
secondary
#C8D3AA
accent
#D453B3
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83