#7F4CE2#7F4CE2
#7F4CE2 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.7% C 0.215 H 293.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4CE2 |
|---|---|
| RGB | rgb(127, 76, 226) |
| HSL | hsl(260, 72%, 59%) |
| HSV | hsv(260, 66%, 89%) |
| CMYK | cmyk(43.8%, 66.4%, 0%, 11.4%) |
| CIE-LAB | lab(45.87, 53.95, -68.81) |
| CIE-LCH | lch(45.87, 87.44, 308.10°) |
| OKLab | oklab(55.69% 0.087 -0.1968) |
| OKLCH | oklch(55.69% 0.215 293.9) |
| XYZ | xyz(25.0606, 15.1712, 73.5447) |
| Luminance | 0.1517 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.01
Bluish Purple
#703BE7
ΔE00 4.48
Light Indigo
#6D5ACF
ΔE00 5.27
Purpleish Blue
#6140EF
ΔE00 5.38
Blueviolet
#8A2BE2
ΔE00 5.76
Slate Blue
#6A5ACD
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4CE2 #AFE24C
analogous
#4C64E2 #7F4CE2 #CA4CE2
triadic
#7F4CE2 #E27F4C #4CE27F
tetradic
#7F4CE2 #E24C64 #AFE24C #4CE2CA
square
#7F4CE2 #E24C64 #AFE24C #4CE2CA
split-complementary
#7F4CE2 #E2CA4C #64E24C
monochromatic
#45199B #5D22CF #7F4CE2 #A581EB #CAB5F3
Accessibility & contrast
On white
5.21
#7F4CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#7F4CE2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4CE2
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4CE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4CE2 | 1.00 | 5.21 | 4.03 | 5.21 |
| #FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#637091
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7f4ce2; /* rgb */ color: rgb(127, 76, 226); /* oklch */ color: oklch(55.7% 0.215 293.9);
Tailwind
colors: {
custom: {
50: '#ab81ec',
500: '#7f4ce2',
950: '#000000',
},
}SCSS
$custom: #7f4ce2; $custom-light: #ab81ec; $custom-dark: #000000;
JSON
{
"hex": "#7f4ce2",
"rgb": {
"r": 127,
"g": 76,
"b": 226
},
"hsl": {
"h": 260.4,
"s": 72.115,
"l": 59.216
},
"oklch": {
"l": 0.55687,
"c": 0.21518,
"h": 293.9
},
"luminance": 0.15172
}Semantic roles & 50–950 ramp
primary
#7F4CE2
secondary
#CEE2A8
accent
#EF39B1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84