#7F34C0#7F34C0
#7F34C0 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.1% C 0.207 H 304.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).
Color values
| HEX | #7F34C0 |
|---|---|
| RGB | rgb(127, 52, 192) |
| HSL | hsl(272, 57%, 48%) |
| HSV | hsv(272, 73%, 75%) |
| CMYK | cmyk(33.9%, 72.9%, 0%, 24.7%) |
| CIE-LAB | lab(39.20, 56.94, -60.07) |
| CIE-LCH | lch(39.20, 82.77, 313.47°) |
| OKLab | oklab(50.13% 0.1162 -0.171) |
| OKLCH | oklch(50.13% 0.207 304.2) |
| XYZ | xyz(19.4926, 10.7738, 50.9116) |
| Luminance | 0.1077 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.66
Darkorchid
#9932CC
ΔE00 4.74
Darkviolet
#9400D3
ΔE00 4.77
Bluey Purple
#6241C7
ΔE00 5.81
Burple
#6832E3
ΔE00 6.11
Bluish Purple
#703BE7
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F34C0 #75C034
analogous
#3934C0 #7F34C0 #C034BB
triadic
#7F34C0 #C07F34 #34C07F
tetradic
#7F34C0 #C03934 #75C034 #34BBC0
square
#7F34C0 #C03934 #75C034 #34BBC0
split-complementary
#7F34C0 #BBC034 #34C039
monochromatic
#3F1A60 #5F2790 #7F34C0 #9D5ED3 #BA8EE0
Accessibility & contrast
On white
6.66
#7F34C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#7F34C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F34C0
6.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F34C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F34C0 | 1.00 | 6.66 | 3.15 | 6.66 |
| #FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#725677
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #7f34c0; /* rgb */ color: rgb(127, 52, 192); /* oklch */ color: oklch(50.1% 0.207 304.2);
Tailwind
colors: {
custom: {
50: '#aa72d4',
500: '#7f34c0',
950: '#000000',
},
}SCSS
$custom: #7f34c0; $custom-light: #aa72d4; $custom-dark: #000000;
JSON
{
"hex": "#7f34c0",
"rgb": {
"r": 127,
"g": 52,
"b": 192
},
"hsl": {
"h": 272.143,
"s": 57.377,
"l": 47.843
},
"oklch": {
"l": 0.5013,
"c": 0.20674,
"h": 304.2
},
"luminance": 0.10774
}Semantic roles & 50–950 ramp
primary
#7F34C0
secondary
#A5CB85
accent
#E1478E
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83