#7F34C3#7F34C3
#7F34C3 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.4% C 0.210 H 303.5°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).
Color values
| HEX | #7F34C3 |
|---|---|
| RGB | rgb(127, 52, 195) |
| HSL | hsl(271, 58%, 48%) |
| HSV | hsv(271, 73%, 76%) |
| CMYK | cmyk(34.9%, 73.3%, 0%, 23.5%) |
| CIE-LAB | lab(39.43, 57.64, -61.45) |
| CIE-LCH | lch(39.43, 84.25, 313.17°) |
| OKLab | oklab(50.36% 0.1157 -0.175) |
| OKLCH | oklch(50.36% 0.21 303.5) |
| XYZ | xyz(19.8284, 10.9082, 52.6800) |
| Luminance | 0.1091 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.26
Darkviolet
#9400D3
ΔE00 4.66
Darkorchid
#9932CC
ΔE00 4.67
Bluey Purple
#6241C7
ΔE00 5.63
Burple
#6832E3
ΔE00 5.73
Bluish Purple
#703BE7
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F34C3 #78C334
analogous
#3834C3 #7F34C3 #C334BF
triadic
#7F34C3 #C37F34 #34C37F
tetradic
#7F34C3 #C33834 #78C334 #34BFC3
square
#7F34C3 #C33834 #78C334 #34BFC3
split-complementary
#7F34C3 #BFC334 #34C338
monochromatic
#401A62 #602793 #7F34C3 #9D60D5 #BB90E1
Accessibility & contrast
On white
6.60
#7F34C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#7F34C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F34C3
6.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F34C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F34C3 | 1.00 | 6.60 | 3.18 | 6.60 |
| #FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#715779
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #7f34c3; /* rgb */ color: rgb(127, 52, 195); /* oklch */ color: oklch(50.4% 0.210 303.5);
Tailwind
colors: {
custom: {
50: '#aa73d6',
500: '#7f34c3',
950: '#000000',
},
}SCSS
$custom: #7f34c3; $custom-light: #aa73d6; $custom-dark: #000000;
JSON
{
"hex": "#7f34c3",
"rgb": {
"r": 127,
"g": 52,
"b": 195
},
"hsl": {
"h": 271.469,
"s": 57.895,
"l": 48.431
},
"oklch": {
"l": 0.50363,
"c": 0.20979,
"h": 303.5
},
"luminance": 0.10908
}Semantic roles & 50–950 ramp
primary
#7F34C3
secondary
#A8CC87
accent
#E14790
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83