#7F5BF2#7F5BF2
#7F5BF2 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.0% C 0.215 H 289.0°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5BF2 |
|---|---|
| RGB | rgb(127, 91, 242) |
| HSL | hsl(254, 85%, 65%) |
| HSV | hsv(254, 62%, 95%) |
| CMYK | cmyk(47.5%, 62.4%, 0%, 5.1%) |
| CIE-LAB | lab(49.98, 50.32, -71.14) |
| CIE-LCH | lch(49.98, 87.13, 305.27°) |
| OKLab | oklab(59.03% 0.0703 -0.2036) |
| OKLCH | oklch(59.03% 0.215 289) |
| XYZ | xyz(28.5159, 18.4038, 86.0370) |
| Luminance | 0.1840 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.86
Mediumslateblue
#7B68EE
ΔE00 3.66
Light Indigo
#6D5ACF
ΔE00 5.80
Slate Blue
#6A5ACD
ΔE00 6.32
Dark Periwinkle
#665FD1
ΔE00 6.37
Lighter Purple
#A55AF4
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5BF2 #CEF25B
analogous
#5B82F2 #7F5BF2 #CB5BF2
triadic
#7F5BF2 #F27F5B #5BF27F
tetradic
#7F5BF2 #F25B82 #CEF25B #5BF2CB
square
#7F5BF2 #F25B82 #CEF25B #5BF2CB
split-complementary
#7F5BF2 #F2CB5B #82F25B
monochromatic
#3A0FC3 #5322EE #7F5BF2 #AB94F6 #D8CCFB
Accessibility & contrast
On white
4.49
#7F5BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.68
#7F5BF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F5BF2
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5BF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F5BF2 | 1.00 | 4.49 | 4.68 | 4.68 |
| #FFFFFF | 4.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AF7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#597F9E
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #7f5bf2; /* rgb */ color: rgb(127, 91, 242); /* oklch */ color: oklch(59.0% 0.215 289.0);
Tailwind
colors: {
custom: {
50: '#ac8bf7',
500: '#7f5bf2',
950: '#000000',
},
}SCSS
$custom: #7f5bf2; $custom-light: #ac8bf7; $custom-dark: #000000;
JSON
{
"hex": "#7f5bf2",
"rgb": {
"r": 127,
"g": 91,
"b": 242
},
"hsl": {
"h": 254.305,
"s": 85.311,
"l": 65.294
},
"oklch": {
"l": 0.59026,
"c": 0.21542,
"h": 289
},
"luminance": 0.18405
}Semantic roles & 50–950 ramp
primary
#7F5BF2
secondary
#E2EEBB
accent
#E204AD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85