#7F51DE#7F51DE
#7F51DE is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.1% C 0.204 H 293.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #7F51DE |
|---|---|
| RGB | rgb(127, 81, 222) |
| HSL | hsl(260, 68%, 59%) |
| HSV | hsv(260, 64%, 87%) |
| CMYK | cmyk(42.8%, 63.5%, 0%, 12.9%) |
| CIE-LAB | lab(46.54, 50.27, -65.45) |
| CIE-LCH | lch(46.54, 82.52, 307.52°) |
| OKLab | oklab(56.08% 0.0824 -0.1869) |
| OKLCH | oklch(56.08% 0.204 293.8) |
| XYZ | xyz(24.8761, 15.6701, 70.8071) |
| Luminance | 0.1567 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.22
Light Indigo
#6D5ACF
ΔE00 4.43
Slate Blue
#6A5ACD
ΔE00 4.98
Bluish Purple
#703BE7
ΔE00 5.54
Purpleish Blue
#6140EF
ΔE00 6.22
Dark Periwinkle
#665FD1
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F51DE #B0DE51
analogous
#516ADE #7F51DE #C551DE
triadic
#7F51DE #DE7F51 #51DE7F
tetradic
#7F51DE #DE516A #B0DE51 #51DEC5
square
#7F51DE #DE516A #B0DE51 #51DEC5
split-complementary
#7F51DE #DEC551 #6ADE51
monochromatic
#451D98 #5C27CB #7F51DE #A584E8 #CBB8F2
Accessibility & contrast
On white
5.08
#7F51DE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#7F51DE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F51DE
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F51DE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F51DE | 1.00 | 5.08 | 4.13 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070E2
Deuteranopia (green-blind)
#006CDB
Tritanopia (blue-blind)
#657290
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7f51de; /* rgb */ color: rgb(127, 81, 222); /* oklch */ color: oklch(56.1% 0.204 293.8);
Tailwind
colors: {
custom: {
50: '#ab84e9',
500: '#7f51de',
950: '#000000',
},
}SCSS
$custom: #7f51de; $custom-light: #ab84e9; $custom-dark: #000000;
JSON
{
"hex": "#7f51de",
"rgb": {
"r": 127,
"g": 81,
"b": 222
},
"hsl": {
"h": 259.574,
"s": 68.116,
"l": 59.412
},
"oklch": {
"l": 0.56079,
"c": 0.20425,
"h": 293.8
},
"luminance": 0.15671
}Semantic roles & 50–950 ramp
primary
#7F51DE
secondary
#CFE1AA
accent
#EB3DB2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84