#7F4FF2#7F4FF2
#7F4FF2 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.3% C 0.230 H 290.9°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4FF2 |
|---|---|
| RGB | rgb(127, 79, 242) |
| HSL | hsl(258, 86%, 63%) |
| HSV | hsv(258, 67%, 95%) |
| CMYK | cmyk(47.5%, 67.4%, 0%, 5.1%) |
| CIE-LAB | lab(47.64, 56.67, -74.95) |
| CIE-LCH | lch(47.64, 93.96, 307.09°) |
| OKLab | oklab(57.34% 0.0818 -0.2148) |
| OKLCH | oklch(57.34% 0.23 290.9) |
| XYZ | xyz(27.5709, 16.5137, 85.7220) |
| Luminance | 0.1651 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.74
Bluish Purple
#703BE7
ΔE00 5.67
Purpleish Blue
#6140EF
ΔE00 5.87
Light Indigo
#6D5ACF
ΔE00 5.99
Slate Blue
#6A5ACD
ΔE00 6.50
Mediumslateblue
#7B68EE
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4FF2 #C2F24F
analogous
#4F70F2 #7F4FF2 #D14FF2
triadic
#7F4FF2 #F27F4F #4FF27F
tetradic
#7F4FF2 #F24F70 #C2F24F #4FF2D1
square
#7F4FF2 #F24F70 #C2F24F #4FF2D1
split-complementary
#7F4FF2 #F2D14F #70F24F
monochromatic
#400EB9 #5616EE #7F4FF2 #A888F6 #D2C1FA
Accessibility & contrast
On white
4.88
#7F4FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#7F4FF2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4FF2
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4FF2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4FF2 | 1.00 | 4.88 | 4.30 | 4.88 |
| #FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#5A789A
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7f4ff2; /* rgb */ color: rgb(127, 79, 242); /* oklch */ color: oklch(57.3% 0.230 290.9);
Tailwind
colors: {
custom: {
50: '#ad84f7',
500: '#7f4ff2',
950: '#000000',
},
}SCSS
$custom: #7f4ff2; $custom-light: #ad84f7; $custom-dark: #000000;
JSON
{
"hex": "#7f4ff2",
"rgb": {
"r": 127,
"g": 79,
"b": 242
},
"hsl": {
"h": 257.669,
"s": 86.243,
"l": 62.941
},
"oklch": {
"l": 0.57337,
"c": 0.22989,
"h": 290.9
},
"luminance": 0.16515
}Semantic roles & 50–950 ramp
primary
#7F4FF2
secondary
#DAECB1
accent
#E303A1
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85