#795FC7#795FC7
#795FC7 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.1% C 0.156 H 292.2°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #795FC7 |
|---|---|
| RGB | rgb(121, 95, 199) |
| HSL | hsl(255, 48%, 58%) |
| HSV | hsv(255, 52%, 78%) |
| CMYK | cmyk(39.2%, 52.3%, 0%, 22%) |
| CIE-LAB | lab(47.46, 34.78, -50.84) |
| CIE-LCH | lch(47.46, 61.59, 304.38°) |
| OKLab | oklab(56.14% 0.0587 -0.1441) |
| OKLCH | oklch(56.14% 0.156 292.2) |
| XYZ | xyz(22.2834, 16.3723, 56.0079) |
| Luminance | 0.1637 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.12
Slate Blue
#6A5ACD
ΔE00 3.47
Dark Periwinkle
#665FD1
ΔE00 4.25
Iris
#6258C4
ΔE00 4.81
Purpley
#8756E4
ΔE00 5.26
Deep Lavender
#8D5EB7
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795FC7 #ADC75F
analogous
#5F79C7 #795FC7 #AD5FC7
triadic
#795FC7 #C7795F #5FC779
tetradic
#795FC7 #C75F79 #ADC75F #5FC7AD
square
#795FC7 #C75F79 #ADC75F #5FC7AD
split-complementary
#795FC7 #C7AD5F #79C75F
monochromatic
#412C7F #583CAC #795FC7 #9F8CD7 #C5BAE7
Accessibility & contrast
On white
4.91
#795FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#795FC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795FC7
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795FC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795FC7 | 1.00 | 4.91 | 4.27 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3372CB
Deuteranopia (green-blind)
#376FC5
Tritanopia (blue-blind)
#65748A
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #795fc7; /* rgb */ color: rgb(121, 95, 199); /* oklch */ color: oklch(56.1% 0.156 292.2);
Tailwind
colors: {
custom: {
50: '#a48dd8',
500: '#795fc7',
950: '#000000',
},
}SCSS
$custom: #795fc7; $custom-light: #a48dd8; $custom-dark: #000000;
JSON
{
"hex": "#795fc7",
"rgb": {
"r": 121,
"g": 95,
"b": 199
},
"hsl": {
"h": 255,
"s": 48.148,
"l": 57.647
},
"oklch": {
"l": 0.56135,
"c": 0.15562,
"h": 292.2
},
"luminance": 0.16373
}Semantic roles & 50–950 ramp
primary
#795FC7
secondary
#CBD6AC
accent
#D850B6
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83