#7F56EB#7F56EB
#7F56EB is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.8% C 0.213 H 290.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #7F56EB |
|---|---|
| RGB | rgb(127, 86, 235) |
| HSL | hsl(257, 79%, 63%) |
| HSV | hsv(257, 63%, 92%) |
| CMYK | cmyk(46%, 63.4%, 0%, 7.8%) |
| CIE-LAB | lab(48.47, 51.10, -69.67) |
| CIE-LCH | lch(48.47, 86.40, 306.26°) |
| OKLab | oklab(57.77% 0.0759 -0.1993) |
| OKLCH | oklch(57.77% 0.213 290.9) |
| XYZ | xyz(27.0714, 17.1648, 80.4679) |
| Luminance | 0.1717 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.74
Light Indigo
#6D5ACF
ΔE00 4.99
Mediumslateblue
#7B68EE
ΔE00 5.13
Slate Blue
#6A5ACD
ΔE00 5.56
Dark Periwinkle
#665FD1
ΔE00 6.14
Lightish Purple
#A552E6
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F56EB #C2EB56
analogous
#5677EB #7F56EB #C956EB
triadic
#7F56EB #EB7F56 #56EB7F
tetradic
#7F56EB #EB5677 #C2EB56 #56EBC9
square
#7F56EB #EB5677 #C2EB56 #56EBC9
split-complementary
#7F56EB #EBC956 #77EB56
monochromatic
#4015B2 #561FE5 #7F56EB #A88DF1 #D2C3F8
Accessibility & contrast
On white
4.74
#7F56EB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.43
#7F56EB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F56EB
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F56EB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F56EB | 1.00 | 4.74 | 4.43 | 4.74 |
| #FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#0070E8
Tritanopia (blue-blind)
#5E7999
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7f56eb; /* rgb */ color: rgb(127, 86, 235); /* oklch */ color: oklch(57.8% 0.213 290.9);
Tailwind
colors: {
custom: {
50: '#ac88f2',
500: '#7f56eb',
950: '#000000',
},
}SCSS
$custom: #7f56eb; $custom-light: #ac88f2; $custom-dark: #000000;
JSON
{
"hex": "#7f56eb",
"rgb": {
"r": 127,
"g": 86,
"b": 235
},
"hsl": {
"h": 256.51,
"s": 78.836,
"l": 62.941
},
"oklch": {
"l": 0.57768,
"c": 0.21331,
"h": 290.9
},
"luminance": 0.17166
}Semantic roles & 50–950 ramp
primary
#7F56EB
secondary
#DAE9B4
accent
#DB0AA2
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85