#7F5FE3#7F5FE3
#7F5FE3 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.6% C 0.192 H 290.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5FE3 |
|---|---|
| RGB | rgb(127, 95, 227) |
| HSL | hsl(255, 70%, 63%) |
| HSV | hsv(255, 58%, 89%) |
| CMYK | cmyk(44.1%, 58.1%, 0%, 11%) |
| CIE-LAB | lab(49.79, 43.92, -63.02) |
| CIE-LCH | lch(49.79, 76.82, 304.87°) |
| OKLab | oklab(58.56% 0.0668 -0.1798) |
| OKLCH | oklch(58.56% 0.192 290.4) |
| XYZ | xyz(26.7059, 18.2416, 74.7720) |
| Luminance | 0.1824 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.73
Mediumslateblue
#7B68EE
ΔE00 3.31
Light Indigo
#6D5ACF
ΔE00 4.55
Slate Blue
#6A5ACD
ΔE00 5.11
Dark Periwinkle
#665FD1
ΔE00 5.20
Mediumpurple
#9370DB
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5FE3 #C3E35F
analogous
#5F81E3 #7F5FE3 #C15FE3
triadic
#7F5FE3 #E37F5F #5FE37F
tetradic
#7F5FE3 #E35F81 #C3E35F #5FE3C1
square
#7F5FE3 #E35F81 #C3E35F #5FE3C1
split-complementary
#7F5FE3 #E3C15F #81E35F
monochromatic
#401EAA #552BDA #7F5FE3 #A993EC #D2C7F5
Accessibility & contrast
On white
4.52
#7F5FE3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.65
#7F5FE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F5FE3
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5FE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F5FE3 | 1.00 | 4.52 | 4.65 | 4.65 |
| #FFFFFF | 4.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079E7
Deuteranopia (green-blind)
#0473E0
Tritanopia (blue-blind)
#617C98
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7f5fe3; /* rgb */ color: rgb(127, 95, 227); /* oklch */ color: oklch(58.6% 0.192 290.4);
Tailwind
colors: {
custom: {
50: '#aa8ded',
500: '#7f5fe3',
950: '#000000',
},
}SCSS
$custom: #7f5fe3; $custom-light: #aa8ded; $custom-dark: #000000;
JSON
{
"hex": "#7f5fe3",
"rgb": {
"r": 127,
"g": 95,
"b": 227
},
"hsl": {
"h": 254.545,
"s": 70.213,
"l": 63.137
},
"oklch": {
"l": 0.58556,
"c": 0.19179,
"h": 290.4
},
"luminance": 0.18242
}Semantic roles & 50–950 ramp
primary
#7F5FE3
secondary
#DBE7B7
accent
#D213A4
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84