#7F56EA#7F56EA
#7F56EA is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.7% C 0.212 H 291.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #7F56EA |
|---|---|
| RGB | rgb(127, 86, 234) |
| HSL | hsl(257, 78%, 63%) |
| HSV | hsv(257, 63%, 92%) |
| CMYK | cmyk(45.7%, 63.2%, 0%, 8.2%) |
| CIE-LAB | lab(48.39, 50.82, -69.23) |
| CIE-LCH | lch(48.39, 85.88, 306.29°) |
| OKLab | oklab(57.69% 0.076 -0.198) |
| OKLCH | oklch(57.69% 0.212 291) |
| XYZ | xyz(26.9273, 17.1072, 79.7092) |
| Luminance | 0.1711 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.67
Light Indigo
#6D5ACF
ΔE00 4.90
Mediumslateblue
#7B68EE
ΔE00 5.17
Slate Blue
#6A5ACD
ΔE00 5.47
Dark Periwinkle
#665FD1
ΔE00 6.08
Bluish Purple
#703BE7
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F56EA #C1EA56
analogous
#5677EA #7F56EA #C956EA
triadic
#7F56EA #EA7F56 #56EA7F
tetradic
#7F56EA #EA5677 #C1EA56 #56EAC9
square
#7F56EA #EA5677 #C1EA56 #56EAC9
split-complementary
#7F56EA #EAC956 #77EA56
monochromatic
#4016B0 #5620E3 #7F56EA #A88CF1 #D1C3F8
Accessibility & contrast
On white
4.75
#7F56EA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.42
#7F56EA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F56EA
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F56EA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F56EA | 1.00 | 4.75 | 4.42 | 4.75 |
| #FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#0070E7
Tritanopia (blue-blind)
#5E7998
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7f56ea; /* rgb */ color: rgb(127, 86, 234); /* oklch */ color: oklch(57.7% 0.212 291.0);
Tailwind
colors: {
custom: {
50: '#ac88f2',
500: '#7f56ea',
950: '#000000',
},
}SCSS
$custom: #7f56ea; $custom-light: #ac88f2; $custom-dark: #000000;
JSON
{
"hex": "#7f56ea",
"rgb": {
"r": 127,
"g": 86,
"b": 234
},
"hsl": {
"h": 256.622,
"s": 77.895,
"l": 62.745
},
"oklch": {
"l": 0.57693,
"c": 0.21211,
"h": 291
},
"luminance": 0.17108
}Semantic roles & 50–950 ramp
primary
#7F56EA
secondary
#DAE9B3
accent
#DA0BA1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85