#7951E5#7951E5
#7951E5 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.0% C 0.212 H 290.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #7951E5 |
|---|---|
| RGB | rgb(121, 81, 229) |
| HSL | hsl(256, 74%, 61%) |
| HSV | hsv(256, 65%, 90%) |
| CMYK | cmyk(47.2%, 64.6%, 0%, 10.2%) |
| CIE-LAB | lab(46.45, 51.02, -69.59) |
| CIE-LCH | lch(46.45, 86.29, 306.25°) |
| OKLab | oklab(56.04% 0.0736 -0.1993) |
| OKLCH | oklch(56.04% 0.212 290.3) |
| XYZ | xyz(24.9664, 15.6060, 75.8103) |
| Luminance | 0.1561 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.85
Light Indigo
#6D5ACF
ΔE00 4.25
Slate Blue
#6A5ACD
ΔE00 4.75
Bluish Purple
#703BE7
ΔE00 5.14
Purpleish Blue
#6140EF
ΔE00 5.30
Dark Periwinkle
#665FD1
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7951E5 #BDE551
analogous
#5173E5 #7951E5 #C351E5
triadic
#7951E5 #E57951 #51E579
tetradic
#7951E5 #E55173 #BDE551 #51E5C3
square
#7951E5 #E55173 #BDE551 #51E5C3
split-complementary
#7951E5 #E5C351 #73E551
monochromatic
#3E18A3 #5220D8 #7951E5 #A286ED #CBBBF5
Accessibility & contrast
On white
5.10
#7951E5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#7951E5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7951E5
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7951E5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7951E5 | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#006BE2
Tritanopia (blue-blind)
#567594
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7951e5; /* rgb */ color: rgb(121, 81, 229); /* oklch */ color: oklch(56.0% 0.212 290.3);
Tailwind
colors: {
custom: {
50: '#a884ee',
500: '#7951e5',
950: '#000000',
},
}SCSS
$custom: #7951e5; $custom-light: #a884ee; $custom-dark: #000000;
JSON
{
"hex": "#7951e5",
"rgb": {
"r": 121,
"g": 81,
"b": 229
},
"hsl": {
"h": 256.216,
"s": 74,
"l": 60.784
},
"oklch": {
"l": 0.56037,
"c": 0.21242,
"h": 290.3
},
"luminance": 0.15607
}Semantic roles & 50–950 ramp
primary
#7951E5
secondary
#D6E5AD
accent
#D60FA0
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84