#795FCB#795FCB
#795FCB is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.4% C 0.161 H 291.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #795FCB |
|---|---|
| RGB | rgb(121, 95, 203) |
| HSL | hsl(254, 51%, 58%) |
| HSV | hsv(254, 53%, 80%) |
| CMYK | cmyk(40.4%, 53.2%, 0%, 20.4%) |
| CIE-LAB | lab(47.70, 35.89, -52.75) |
| CIE-LCH | lch(47.70, 63.80, 304.23°) |
| OKLab | oklab(56.39% 0.0589 -0.1497) |
| OKLCH | oklch(56.39% 0.161 291.5) |
| XYZ | xyz(22.7539, 16.5605, 58.4860) |
| Luminance | 0.1656 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.83
Slate Blue
#6A5ACD
ΔE00 3.24
Dark Periwinkle
#665FD1
ΔE00 3.94
Purpley
#8756E4
ΔE00 4.79
Iris
#6258C4
ΔE00 4.80
Mediumslateblue
#7B68EE
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#795FCB #B1CB5F
analogous
#5F7BCB #795FCB #AF5FCB
triadic
#795FCB #CB795F #5FCB79
tetradic
#795FCB #CB5F7B #B1CB5F #5FCBAF
square
#795FCB #CB5F7B #B1CB5F #5FCBAF
split-complementary
#795FCB #CBAF5F #7BCB5F
monochromatic
#412B85 #573AB3 #795FCB #A08DDA #C6BBE9
Accessibility & contrast
On white
4.87
#795FCB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#795FCB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #795FCB
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##795FCB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##795FCB | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E73CF
Deuteranopia (green-blind)
#336FC9
Tritanopia (blue-blind)
#63768C
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #795fcb; /* rgb */ color: rgb(121, 95, 203); /* oklch */ color: oklch(56.4% 0.161 291.5);
Tailwind
colors: {
custom: {
50: '#a48ddb',
500: '#795fcb',
950: '#000000',
},
}SCSS
$custom: #795fcb; $custom-light: #a48ddb; $custom-dark: #000000;
JSON
{
"hex": "#795fcb",
"rgb": {
"r": 121,
"g": 95,
"b": 203
},
"hsl": {
"h": 254.444,
"s": 50.943,
"l": 58.431
},
"oklch": {
"l": 0.56393,
"c": 0.16091,
"h": 291.5
},
"luminance": 0.16561
}Semantic roles & 50–950 ramp
primary
#795FCB
secondary
#CED8AD
accent
#DA4DB8
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83